]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixes #1144 with an update to the docs to indicate that labels are required for each...
authoretimberg <evert.timberg@gmail.com>
Mon, 8 Feb 2016 00:58:15 +0000 (19:58 -0500)
committeretimberg <evert.timberg@gmail.com>
Mon, 8 Feb 2016 00:58:15 +0000 (19:58 -0500)
docs/01-Line-Chart.md

index a4b508e776b6cd540e04becf8b5ba3ae7e28b2c2..212d012a31082056faccd5873a5c37c55778c459 100644 (file)
@@ -45,7 +45,7 @@ var data = {
 };
 ```
 
-The line chart requires an array of labels for each of the data points. This is shown on the X axis.
+The line chart requires an array of labels. This labels are shown on the X axis. There must be one label for each data point. More labels than datapoints are allowed, in which case the line ends at the last data point.
 The data for line charts is broken up into an array of datasets. Each dataset has a colour for the fill, a colour for the line and colours for the points and strokes of the points. These colours are strings just like CSS. You can use RGBA, RGB, HEX or HSL notation.
 
 The label key on each dataset is optional, and can be used when generating a scale for the chart.