From: Evert Timberg Date: Thu, 4 Jun 2015 00:33:50 +0000 (-0400) Subject: Additional fixes to line chart docs X-Git-Tag: v2.0-alpha~2^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dcee4b40e4ef90dde718dc0f57f4eef98994640;p=thirdparty%2FChart.js.git Additional fixes to line chart docs --- diff --git a/docs/01-Line-Chart.md b/docs/01-Line-Chart.md index abee3c9f9..7ab8166a3 100644 --- a/docs/01-Line-Chart.md +++ b/docs/01-Line-Chart.md @@ -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