From 81aedf4df0ebe107f35880451b1e093bc6bdeb5b Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Wed, 25 May 2016 18:37:07 -0400 Subject: [PATCH] Fix scale typos --- docs/02-Scales.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: {