]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Additional fixes to line chart docs
authorEvert Timberg <evert.timberg@gmail.com>
Thu, 4 Jun 2015 00:33:50 +0000 (20:33 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Thu, 4 Jun 2015 00:33:50 +0000 (20:33 -0400)
docs/01-Line-Chart.md

index abee3c9f9e6bf6166b923bedc5d09bb04fd2a04f..7ab8166a3aea1236be0cbf6eedc3f00bd19e7a4f 100644 (file)
@@ -13,7 +13,10 @@ Often, it is used to show trend data, and the comparison of two data sets.
 
 ###Example usage
 ```javascript
-var myLineChart = new Chart(ctx).Line(data, options);
+var myLineChart = new Chart(ctx).Line({
+       data: data, 
+       options: options
+});
 ```
 ###Data structure
 
@@ -180,9 +183,14 @@ These are the customisation options specific to Line charts. These options are m
                                zeroLineColor: "rgba(0,0,0,0.25)",
                        },
 
-                       // scale numbers
+                       // Boolean - if true ensures that the scale always has a 0 point
                        beginAtZero: false,
-                       integersOnly: false,
+
+                       // Object - if specified, allows the user to override the step generation algorithm.
+                       //                      Contains the following values
+                       //                              start: // number to start at
+                       //                              stepWidth: // size of step
+                       //                              steps: // number of steps
                        override: null,
 
                        // label settings