more charts

This commit is contained in:
Walter Hupfeld
2023-10-10 11:54:57 +02:00
parent 77aa04a01c
commit b0de883339
2 changed files with 85 additions and 6 deletions

View File

@@ -53,10 +53,10 @@ function get_unfallart($numYear,$strLocation){
return $arrResult;
}
function get_series($arrData,$arrBezeichnung){
function get_series($arrData,$arrBezeichnung,$strIndex1,$strIndex2="anz"){
$result="[";
foreach ($arrData as $row) {
$result.= "{ name: '".$arrBezeichnung[$row['UKATEGORIE']] ."', y: ".$row['anz']."},";
$result.= "{ name: '".$arrBezeichnung[$row[$strIndex1]] ."', y: ".$row[$strIndex2]."},";
}
$result.="]";
return $result;