Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add clarification about object data structure #8447

Merged
merged 3 commits into from
Feb 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/docs/general/data-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ data: [{x:'Sales', y:20}, {x:'Revenue', y:10}]

This is also the internal format used for parsed data. In this mode, parsing can be disabled by specifying `parsing: false` at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

In case you specify the index scale as a number as shown in the first example you will need a labels array. The number indicates the index of the element and does not replace the label as when you provide a string.
LeeLenaleee marked this conversation as resolved.
Show resolved Hide resolved

## Object[] using custom properties

```javascript
Expand Down