I have an app that fetches json data
of the largest stock movers in a day from a google spreadsheet. I then use this data to
generate a pie chart showing the different movers and the number of shares sold using
ajax to populate the chart
Here is my
code:
NSE VISUALIZATIONS
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
src="highcharts.js">
The
data format recognised by highcharts is as
follows:
[["SCOM",2392492],["EQTY",2089121]]
I
however have this as my data in 2 arrays: the first being a set of largest mover names
and the second being a list of their values arranged in the respective order in which
the mover names are arranged in the first array.
i.e.
["SCOM","EQTY"]
[2392492,
2089121]
How should I
format my code to take in this 2 array and relate them to plot a pie
chart
No comments:
Post a Comment