From: Evert Timberg Date: Wed, 25 May 2016 22:37:07 +0000 (-0400) Subject: Fix scale typos X-Git-Tag: v2.1.4~2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81aedf4df0ebe107f35880451b1e093bc6bdeb5b;p=thirdparty%2FChart.js.git Fix scale typos --- diff --git a/docs/02-Scales.md b/docs/02-Scales.md index cdd1bacda..a5b1f5260 100644 --- a/docs/02-Scales.md +++ b/docs/02-Scales.md @@ -151,7 +151,7 @@ suggestedMin | Number | - | User defined minimum number for the scale, overrides The following example creates a line chart with a vertical axis that goes from 0 to 5 in 0.5 sized steps. ```javascript -var chartInstance = new Chart({ +var chartInstance = new Chart(ctx, { type: 'line', data: data, options: { @@ -186,7 +186,7 @@ max | Number | - | User defined maximum number for the scale, overrides maximum The following example creates a chart with a logarithmic X axis that ranges from 1 to 1000. ```javascript -var chartInstance = new Chart({ +var chartInstance = new Chart(ctx, { type: 'line', data: data, options: { @@ -245,7 +245,7 @@ year | 'YYYY' For example, to set the display format for the 'quarter' unit to show the month and year, the following config would be passed to the chart constructor. ```javascript -var chartInstance = new Chart({ +var chartInstance = new Chart(ctx, { type: 'line', data: data, options: { @@ -280,7 +280,7 @@ The following time measurements are supported. The names can be passed as string For example, to create a chart with a time scale that always displayed units per month, the following config could be used. ```javascript -var chartInstance = new Chart({ +var chartInstance = new Chart(ctx, { type: 'line', data: data, options: {