Reputation: 576
I am facing a problem printing an array into HighCharts.
var FirstTurnOver =new Array();
This array Contains 100,345,212,444,121,111,65 all values are dynamically fetching from the server. Now I have to show them in series.
series: [{
data: FirstTurnOver
}]
This doesn't print anything on my Y axis.
Upvotes: 3
Views: 160
Reputation: 77482
Your array contains numbers of strings, you just need to convert strings to numbers
FirstTurnOver.map(function (el) { return +el })
// The same but a little shorter
// FirstTurnOver.map(Number)
// or before push
// FirstTurnOver.push(+billerdetails1);
Upvotes: 2