From 88d8ca75a3c33ff29d4417b3f1a75aa1728aae39 Mon Sep 17 00:00:00 2001 From: Walter Hupfeld Date: Tue, 10 Oct 2023 12:22:16 +0200 Subject: [PATCH] chart beteligte --- statistics/gemeinde_detail.php | 42 +++++++++++++++++++++++++++++++++- statistics/include.php | 10 ++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/statistics/gemeinde_detail.php b/statistics/gemeinde_detail.php index 8667a31..034933e 100644 --- a/statistics/gemeinde_detail.php +++ b/statistics/gemeinde_detail.php @@ -125,6 +125,9 @@ ?> +
+
+
@@ -161,6 +164,7 @@ + \ No newline at end of file diff --git a/statistics/include.php b/statistics/include.php index 755c49e..aacd5b8 100644 --- a/statistics/include.php +++ b/statistics/include.php @@ -62,3 +62,13 @@ function get_series($arrData,$arrBezeichnung,$strIndex1,$strIndex2="anz"){ return $result; } +function get_series_beteiligte($arrData,$arrBezeichnung){ + $result="["; + foreach ($arrData as $key => $numCount) { + if ($key!="rad") { // Fahrräder sind immer beteiligt. + $result .= "{name: '".$arrBezeichnung[$key]."', y: ".$numCount."},"; } + } + $result.="]"; + return $result; +} +