more charts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user