I have the following array, which returns the values as follows:
0: data: (2) [10000, "Vinil s/ pó"] name: "Janeiro"
I'm trying to split this way:
var series1 = series.split(",");
var series2 = series1[1] + "," + series1[2];
But it gives me the following error:
Uncaught TypeError: series.split is not a function
Code to generate the array
var series = [],
len = data.length,
i = 0;
for(i;i<len;i++){
series.push({
name: 'Janeiro',
data:[data[i][7], data[i][3]]
});
}
Link to draw the graph Link