I have JSON from which I create a chart. In JSON, I've got array of objects, each object containing several arrays of numeric values and some other properties like:
"rows": [
{
In createChart() function I can set to
"rows": [
{
"handling": [8616.2759999999998, 7095.1799999999994, 6916.5359999999991],]
"name": "XXX",
"weight": [13.388057013625801, 27.4987252294945, 3.9746104136942266],
"color": "#265A6A",
"data": [2872.0920000000001, 2365.0599999999999, 2305.5120000000002],
},
{ ..}
In createChart() function I can set to
series: data.rows
and the chart is created with "data" values from each object from "rows" array. How can I change the data source from objects "data" array to some other (e.g. "weight")?