Color the scales of multi-axis scatter sample (#7741)

This commit is contained in:
Jukka Kurkela
2020-08-31 14:57:06 +03:00
committed by GitHub
parent da33b1bb27
commit a32e672fb2

View File

@@ -101,7 +101,13 @@
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
@@ -109,7 +115,12 @@
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
}