]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Ensure all samples use correct scale options (#7147)
authorEvert Timberg <evert.timberg+github@gmail.com>
Sat, 22 Feb 2020 19:33:39 +0000 (14:33 -0500)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2020 19:33:39 +0000 (14:33 -0500)
samples/advanced/line-gradient.html
samples/scales/axes-labels.html
samples/scales/gridlines-scriptable.html

index b60a17a27164e6342f58b4949f6965a60cfd1824..bbbd08259c8dd186bd4631cc8364b194696a41cd 100644 (file)
                                        intersect: true
                                },
                                scales: {
-                                       xAxes: [{
+                                       x{
                                                display: true,
                                                scaleLabel: {
                                                        display: true,
                                                        labelString: 'Month'
                                                }
-                                       }],
-                                       yAxes: [{
+                                       },
+                                       y{
                                                display: true,
                                                scaleLabel: {
                                                        display: true,
                                                        labelString: 'Value'
                                                }
-                                       }]
+                                       }
                                }
                        }
                };
index da9c76e628c43bc88ddec871a865b6291be8a482..66bad81b2a3225472df3b468c89295aceb010310 100644 (file)
@@ -76,7 +76,7 @@
                                        intersect: true
                                },
                                scales: {
-                                       xAxes: [{
+                                       x{
                                                display: true,
                                                scaleLabel: {
                                                        display: true,
@@ -88,8 +88,8 @@
                                                        fontStyle: 'bold',
                                                        padding: {top: 20, left: 0, right: 0, bottom: 0}
                                                }
-                                       }],
-                                       yAxes: [{
+                                       },
+                                       y{
                                                display: true,
                                                scaleLabel: {
                                                        display: true,
                                                        fontStyle: 'normal',
                                                        padding: {top: 30, left: 0, right: 0, bottom: 0}
                                                }
-                                       }]
+                                       }
                                }
                        }
                };
index 44711492095baa4fa733ea8c6fef43b52fd764f3..306467f8451953f35d61cb29f99d8d0a3e3c70a2 100644 (file)
@@ -44,7 +44,7 @@
                                        text: 'Grid Line Settings'
                                },
                                scales: {
-                                       yAxes: [{
+                                       y{
                                                gridLines: {
                                                        drawBorder: false,
                                                        color: function(context) {
@@ -57,7 +57,7 @@
                                                                return '#000000';
                                                        },
                                                },
-                                       }]
+                                       }
                                }
                        }
                };