]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix scale typos
authorEvert Timberg <evert.timberg+github@gmail.com>
Wed, 25 May 2016 22:37:07 +0000 (18:37 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Wed, 25 May 2016 22:39:43 +0000 (18:39 -0400)
docs/02-Scales.md

index cdd1bacdab025bfa3dd79a2c79867f4748e6f38e..a5b1f5260d9e9bab08a32e8f80ed7dfa18d0e397 100644 (file)
@@ -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: {