mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-03 06:54:02 +01:00
Color the scales of multi-axis scatter sample (#7741)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user