From: etimberg Date: Sat, 22 Apr 2017 18:47:00 +0000 (-0400) Subject: Make it clear that labels need to be specified when using a category axis on a line... X-Git-Tag: v2.6.0~2^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a75ae13b07e8326d7f83b8cd578a53fedff9756f;p=thirdparty%2FChart.js.git Make it clear that labels need to be specified when using a category axis on a line chart --- diff --git a/docs/charts/line.md b/docs/charts/line.md index f838bac0d..a64f436cf 100644 --- a/docs/charts/line.md +++ b/docs/charts/line.md @@ -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[]