Thursday, March 24, 2016

angularJS highcharts

http://www.highcharts.com/

http://stackoverflow.com/questions/16061032/highcharts-series-data-array
http://jsfiddle.net/Cm3Ps/


http://stackoverflow.com/questions/29643609/how-to-pass-json-data-to-highcharts-series

I solved the problem

Changed json array as follows:

var sales = [
              { "name"  : "AllProducts123|Canada", "data" :[44936.0,50752.0] },
              { "name"  : "AllProducts|Mexico", "data" : [200679.0,226838.0] },
              { "name"  : "AllProducts|USA",    "data" : [288993.0,289126.0] }
            ]
Now pass it directly to series in highcharts.

 series:sales
Done !!!!!

1 comment:

  1. I like your post very much. It is very much useful for my research. I hope you to share more info about this. Keep postingangular course

    ReplyDelete