Home Forums Feature Requests & Feedback stackedColumn Reply To: stackedColumn

#4744

Hi,

You can take one of the two approaches…

1. Return the data variable directly from the server and assign it to the chart’s “data” property. So your JSON response would look something like this.

[
{
type: "stackedColumn",
dataPoints: [
{ y: 111338, label: "USA" },
{ y: 49088, label: "Russia" },
{ y: 62200, label: "China" },
{ y: 90085, label: "India" },
{ y: 38600, label: "Australia", },
{ y: 48750, label: "SA", }

]
}, {
type: "stackedColumn",
dataPoints: [
{ y: 135305, label: "USA" },
{ y: 107922, label: "Russia" },
{ y: 52300, label: "China" },
{ y: 3360, label: "India" },
{ y: 39900, label: "Australia", },
{ y: 0, label: "SA", }

]
}
]

2. Return data in any custom format and then process it on the client side to build array in above format.