mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-19 06:36:51 +01:00
Make it clear that labels need to be specified when using a category axis on a line chart
This commit is contained in:
@@ -142,7 +142,7 @@ The `data` property of a dataset for a line chart can be passed in two formats.
|
||||
data: [20, 10]
|
||||
```
|
||||
|
||||
When the `data` array is an array of numbers, the x axis is generally a [category](../axes/cartesian/category.md#Category Axis). The points are placed onto the axis using their position in the array.
|
||||
When the `data` array is an array of numbers, the x axis is generally a [category](../axes/cartesian/category.md#Category Axis). The points are placed onto the axis using their position in the array. When a line chart is created with a category axis, the `labels` property of the data object must be specified.
|
||||
|
||||
### Point[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user