I am working on a website that has Google charts, the website includes JavaScript Ajax that pulls data from web service and supposed to create object that will be passed to chart.
If it possible to build this custom object, would you mind giving me an example of how to do so, my problem is in understanding how exactly I construct it from custom values (lets say array).
The object looks like
chart_data.addRows([
['1', 1000, 400, 200],
['2', 1000, 460, 200],
['3', 860, 580, 200],
['4', 1030, 540, null],
['5', null, 540, null]
]);
Your help is appreciated.
The function call is using an array (of arrays), not an object. You could build the array for example like this, and call the function using the variable:
Each of the arrays in the array could also be build dynamically: