Replies: 1 comment
-
Hey @lanwin 👋 thanks for checking out Generally I would recommend against trying to overlay two y-axes on the same chart, it's often seen as violating "data vis best practices" because they are confusing and often uninterpretable to users. For instance in looking at this screenshot, I cannot tell whether the line maps to the left axis or the right, and same for the bars (often users that insist on using two y-axes try to color match the scales to make this unambiguous). Two y-axes also can be misleading in terms of suggesting that the two axes values are correlated somehow, even though the correlation depends mostly on the scales of the two axes. Instead I recommend vertically stacking two charts on top of each other so they can leverage the same x-scale, while having distinct and interpretable y-axes. Usually the reason you want to overlay them is to share the x-axis, and this approach gives you that. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have two Y-Axis with two different linearScales. And now I want to align both axis with the grid and can not find a good way to do so:
Ive tried to give both the same numTicks but it did not work.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions