- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
<?php
$year = 0;
echo "var newDataArr = [";
for ($i=0; $i<count($numStat); $i++){
if ($year != $numStat[$i]['DSFLD_2444']){
if ($i>0) echo "]},
";
echo "{ year: ".$numStat[$i]['DSFLD_2444']. ", data: [
['".addslashes($numStat[$i]['DSFLD_2429'])."',"
.$numStat[$i]['DSFLD_2358'].", "
.$numStat[$i]['DSFLD_2360'].", "
.$numStat[$i]['DSFLD_2365'].", "
.$numStat[$i]['DSFLD_2357'].", "
.$numStat[$i]['DSFLD_2369']."]";
}
else {
echo ",['".addslashes($numStat[$i]['DSFLD_2429'])."',"
.$numStat[$i]['DSFLD_2358'].", "
.$numStat[$i]['DSFLD_2360'].", "
.$numStat[$i]['DSFLD_2365'].", "
.$numStat[$i]['DSFLD_2357'].", "
.$numStat[$i]['DSFLD_2369']."]";
}
$year = $numStat[$i]['DSFLD_2444'];
}
if ($year>0) echo "]}
";
echo "];
"
?>