How to align line point to middle of categorical bars #11088
Answered
by
stockiNail
johnnyleejy
asked this question in
Q&A
-
I want to align the line points to each bar. Is there a way to achieve this? This is a category x axis. Currently, the lines are aligned in the middle |
Beta Was this translation helpful? Give feedback.
Answered by
stockiNail
Jan 24, 2023
Replies: 1 comment 3 replies
-
I think an options could be to add a hidden axis (linear) as X one and related the line datasets to it. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
johnnyleejy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think an options could be to add a hidden axis (linear) as X one and related the line datasets to it.
Of course it's a workaround.
Have a look to codepen is it's close to your need. https://codepen.io/stockinail/pen/mdKZGYb
To work correctly, it needs same assumptions and constraints, as you can see in the sample.