You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by cintiapinto October 25, 2021
I have a combo bar/line chart where the line dataset starts straight after the bar dataset on the x-axis.
i.e.
from 0 to 2020 -> bar chart
2020 to 2050 -> line chart
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.
Discussed in #9788
Originally posted by cintiapinto October 25, 2021
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
![Screen Shot 2021-10-25 at 10 34 44 am](https://user-images.githubusercontent.com/15671830/138617357-fc43b231-2ff5-4c7e-9b3f-58b74d2b193c.png)
e.g.
(screenshot from docs https://www.chartjs.org/docs/latest/samples/line/line.html)
Thank you!
The text was updated successfully, but these errors were encountered: