]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Color the scales of multi-axis scatter sample (#7741)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Mon, 31 Aug 2020 11:57:06 +0000 (14:57 +0300)
committerGitHub <noreply@github.com>
Mon, 31 Aug 2020 11:57:06 +0000 (07:57 -0400)
samples/charts/scatter/multi-axis.html

index 936b5ac97ced5453b1ad82bd383a9f561d28f55f..853ab352953b10ac574fc79dbd841ed3a38aded2 100644 (file)
                                        y: {
                                                type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
                                                display: true,
-                                               position: 'left'
+                                               position: 'left',
+
+                                               ticks: {
+                                                       font: {
+                                                               color: window.chartColors.red
+                                                       }
+                                               }
                                        },
                                        y2: {
                                                type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance
                                                position: 'right',
                                                reverse: true,
 
-                                               // grid line settings
+                                               ticks: {
+                                                       font: {
+                                                               color: window.chartColors.blue
+                                                       }
+                                               },
+
                                                gridLines: {
                                                        drawOnChartArea: false, // only want the grid lines for one axis to show up
                                                }