score:1

Accepted answer

you can do this also in js:

var arr = [{ "revenue_value": "2000"}, { "revenue_value": "123" }, ... ]; //get it from ajax or from php directly
var data = []; 
$.each(arr, function(i, d) {
    data.push(parsefloat(d.revenue_value));  // gather values, and parse them to number
});

now, add your data to your options:

series: [{
    data: data
}]

ps: instead of using images, copy&paste your code.. ;)


Related Query

More Query from same tag