From 7dcee4b40e4ef90dde718dc0f57f4eef98994640 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Wed, 3 Jun 2015 20:33:50 -0400 Subject: [PATCH] Additional fixes to line chart docs --- docs/01-Line-Chart.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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