1844 Game Over

Tabelle

 

Spieler (0)

Pass Nr. Name Team Captain
Keine Spieler in diesem Team

Spiele

Datum Heimteam Gastteam Spielort Ergebnis Details

Teamstatistiken

Gespielte Legs

$(document).ready(function () { var ctx = document.getElementById('myChart'); var data = JSON.parse(ctx.getAttribute("data-data")); var legs = {}; for (const key in data) { if (data.hasOwnProperty(key)) { const leg = data[key]; if (!legs[leg.darts]) { legs[leg.darts] = [1,0,0]; if (leg.rest > 0) legs[leg.darts][2] += 1; if (leg.rest == 0) legs[leg.darts][1] += 1; } else { legs[leg.darts][0] += 1; if (leg.rest > 0) legs[leg.darts][2] += 1; if (leg.rest == 0) legs[leg.darts][1] += 1; } } } var dataset1 = []; var dataset2 = []; var dataset3 = []; var labels = []; for (let index = 0; index < 60; index++) { if (legs[index]) dataset1[index] = legs[index][0]; else dataset1[index] = 0; if (legs[index]) dataset2[index] = legs[index][1]; else dataset2[index] = 0; if (legs[index]) dataset3[index] = legs[index][2]; else dataset3[index] = 0; labels.push(index); } var myChart = new Chart(ctx, { type: 'bar', data: { labels: labels, datasets: [{ label: 'Alle Legs', data: dataset1, backgroundColor: 'rgba(255, 159, 64, 0.2)', borderColor: 'rgb(255, 159, 64)', borderWidth: 1 }, { label: 'Gewonnene Legs', data: dataset2, backgroundColor:'rgba(75, 192, 192, 0.2)', borderColor: 'rgba(75, 192, 192, 1)', borderWidth: 1, hidden: true, }, { label: 'Verlorene Legs', data: dataset3, backgroundColor: 'rgba(255, 99, 132, 0.2)', borderColor: 'rgba(255, 99, 132, 1)', borderWidth: 1, hidden: true, }] }, options: { scales: { xAxes: [{ticks: {precision: 0, min: 9, autoSkip: true, maxTicksLimit: 20}}], yAxes: [{ticks: {precision: 0}}] } } }); });

Team


Averages per Dart