When the Data
is a comma seperated list of numbers, values from Labels
at the same index are used for the index axis.
Another method is this internal format used for parsed data:
{x: 'Sales', y: 20}, {x: 'Revenue', y: 10}
The
Data
should be sorted in the formats the associated chart type and scales use internally, so
x
,
y
for linear charts and
r
for radial.
Otherwise you have to use the Parsing
option to tell the chart keys that point to the values to look at. For Example with
{id: 'Sales', nested: {value: 1500}}, {id: 'Purchases', nested: {value: 500}}
you will need to set
xAxisKey
to
'id'
and
yAxisKey
to
'nested.value'
.