hello
can someone help me with the Highcharts?
i have this code and i wanted to implement it in my pireps view report
<?php
if(isset($pirep))
$pirep = $pirep;
/* pull data from rawdata */
$res = @unserialize($pirep->rawdata);
if($res !== false)
{
$pirep->rawdata = $res;
unset($res);
}
$json = ‘’;
if(is_array($pirep->rawdata[‘points’]))
{
foreach($pirep->rawdata[‘points’] as $point)
{
$time = str_replace(‘[’, ‘’, $point[‘time’]);
$time = str_replace(‘]’, ‘’, $time);
$time = str_replace(‘l’, ‘’, $time);
$alt = $point[‘alt’];
$gs = $point[‘gs’];
$json .= “[‘{$time}’, {$alt}, {$gs}],”;
}
$json = rtrim($json, ‘,’);
}
?>
thanks
Laurent