Can someone explain to me how to properly pass an object as Series data into HighCharts?
I've created an object using the following:
var series2 = {
id: 'series',
name: 'JSON Data',
data: []
}
And then have a loop whereby I'm pushing data into the object like so:
series2.data.push([c, csv]);
And trying to set the series, within the HighCharts chart initialization as:
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
floating: false,
borderWidth: 1,
backgroundColor: '#FFFFFF',
shadow: true
},
series: series2
When rendered, my chart doesn't give any errors, but likewise it doesn't show any data!
If I change my HighCharts initialization line to read "series: series2.data" I DO get the correct number of series, but still no data.
Is there a correct way of doing this?