]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix doc syntax (#2673) 2678/head
authorZach Panzarino <zachary@panzarino.com>
Tue, 31 May 2016 17:50:02 +0000 (17:50 +0000)
committerZach Panzarino <zachary@panzarino.com>
Tue, 31 May 2016 17:50:02 +0000 (17:50 +0000)
docs/02-Scales.md

index 73ff651c376c29e5f73e1d0ae38c0123155eed89..83e52d49ecb691c9190c8dbb9d62de7b3f50b76f 100644 (file)
@@ -190,14 +190,16 @@ var chartInstance = new Chart(ctx, {
     type: 'line',
     data: data,
     options: {
-        xAxes: [{
-            type: 'logarithmic',
-            position: 'bottom',
-            ticks: {
-                min: 1,
-                max: 1000
-            }
-        }]
+        scales: {
+            xAxes: [{
+                type: 'logarithmic',
+                position: 'bottom',
+                ticks: {
+                    min: 1,
+                    max: 1000
+                }
+            }]
+        }
     }
 })
 ```