Combo bar/line chart - how to align line points with the left side of the bar? #9788
Unanswered
cintiapinto
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a combo bar/line chart where the line dataset starts straight after the bar dataset on the x-axis.
i.e.
I have put in
null
values in my data array for the line chart, so it starts at the right x position. However, it seems like on bar/line combo charts, a point in the line is always centred in the middle of the bar category.This can also be seen in the samples:
https://www.chartjs.org/docs/latest/samples/other-charts/combo-bar-line.html
This is causing a "gap" in between my two datasets because the point is positioned in the middle:
Is there a way to maybe sex an offset on the line chart dataset or an option to align the points to the left of the bar category?
I need the behaviour of the normal line chart in the combo bar/line chart, where the point is at the start of the category

e.g.
(screenshot from docs https://www.chartjs.org/docs/latest/samples/line/line.html)
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions