ALT&GS data

How to read “rawdata” data

Hello 

works but instead of appearing the altitude appears  the numbers  of points

‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’, ‘3’, ‘9’, ‘11’, ‘9’, ‘5’, ‘141’, ‘241’, ‘244’, ‘244’, ‘246’, ‘246’, ‘246’, ‘246’, ‘244’, ‘246’, ‘246’, ‘244’, ‘241’, ‘237’, ‘229’, ‘103’, ‘93’, ‘73’, ‘25’, ‘5’, ‘9’, ‘0’, ‘0’, ‘0’, ‘0’, ‘0’,

 

 

<script type=“text/javascript”>

Highcharts.chart(‘container’, {
    chart: {
        type: ‘line’
    },
    title: {
        text: ‘Altitude’
    },
  
    xAxis: {
        categories: [<?php $res = @unserialize($pirep->rawdata);
               if (is_array($pirep->rawdata[“points”])){    
               foreach
               ($pirep->rawdata[‘points’] as $point)
               {
               ?>
               ‘<?php echo $altitude = $point[‘alt’] ?>’,
<?php        
}
}?>]
    },
    yAxis: {
        title: {
            text: ‘Altitude’
        }
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: true
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: ‘Altitude’,
        data: [<?php $res = @unserialize($pirep->rawdata);
               if (is_array($pirep->rawdata[“points”])){    
               foreach
               ($pirep->rawdata[‘points’] as $point)
               {
               ?>
               ‘<?php echo $altitude = $point[‘alt’] ?>’,
<?php        
}
}?>]
    }]
});
        </script>

Solved

Thank you

Can you share the full code please? Not working for me  

Yeah I have rawdata in mysql database with all the details. Just need the code..

Sorted it out, thanks