Hunde:

0) $averagespeed = round(array_sum($a)/count($a),2); $a = $sdata['errors']; if(count($a)>0) $averageerrors = round(array_sum($a)/count($a),2); $a = $sdata['refusals']; if(count($a)>0) $averagerefusals = round(array_sum($a)/count($a),2); $a = array_filter($sdata['ranking']); if(count($a)>0) $averageranking = round(array_sum($a)/count($a),2); } ?>

Statistik


0) : ?>
'graph1'.$dogid, 'title' => 'Fehler und Verweigerungen', 'xaxis' => $sdata['dates'], 'seriesdata' => [ ['name' => 'Fehler', 'type' => 'line', 'stack' => 'Total', 'data' => $sdata['errors']], ['name' => 'Verweigerungen', 'type' => 'line', 'stack' => 'Total', 'data' => $sdata['refusals']], ], ]); ?>
'graph2'.$dogid, 'title' => 'Geschwindigkeit', 'xaxis' => $sdata['dates'], 'seriesdata' => [ ['name' => 'Geschwindigkeit', 'type' => 'line', 'stack' => 'Total', 'data' => $sdata['speed']], ], ]); ?>
'graph3'.$dogid, 'title' => 'Platzierung', 'xaxis' => $sdata['dates'], 'seriesdata' => [ ['name' => 'Platzierung', 'type' => 'line', 'stack' => 'Total', 'data' => $sdata['ranking']], ], ]); ?>