I am novice with JavaScript, and in my website I need to use highchart with some PHP var. And I have a question : With Highchart, I need to complete some information :
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
I have my array in PHP coverted in JavaScript with :
var array = <?php echo json_encode($array); ?>;
But, the length of my array is never the same length between differents users. And I need to complete "categories" with all the values in my array.
How can I do this?