jquery - Print Array in HighChart -


i facing problem printing array highcharts.

var firstturnover =new array(); 

this array contains 100,345,212,444,121,111,65 values dynamically fetching server. have show them in series.

series: [{     data: firstturnover   }] 

this doesn't print on y axis.

your array contains numbers of strings, need convert strings numbers

firstturnover.map(function (el) { return +el  }) // same little shorter // firstturnover.map(number)  // or before push  // firstturnover.push(+billerdetails1); 

example


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -