Aligning two y-axes for a line chart #10171
Replies: 2 comments 1 reply
-
This is something that is definitely interesting to have. It this possible in a soft coded manner? I can imagine a hardcoded option with stepSize and min/max would be needed but it would be customized for each individual chart. Not suitable for a chart with where the scale would adjust consistently. |
Beta Was this translation helpful? Give feedback.
-
Maybe, as workaround, you can try to set the same amount of ticks for both scales. This is doable using the scales: {
y1: {
type: 'linear',
ticks: {
count: 9
}
},
y2: {
type: 'linear',
position: 'right',
ticks: {
count: 9
}
}
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to align two different y axes which seems to me would be a very common use case. Below is my current graph:

What I'd like is for the right axis numbers to align with the grid lines from the left. Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions