Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid data placement in bar chart #1235

Closed
klinki opened this issue Mar 30, 2020 · 0 comments · Fixed by #1365
Closed

Invalid data placement in bar chart #1235

klinki opened this issue Mar 30, 2020 · 0 comments · Fixed by #1365

Comments

@klinki
Copy link

klinki commented Mar 30, 2020

Hello,
I have multiple data series and bars are not placed correctly on x axis for data in other series.
First series appers to be correct.

obrazek

And here is data:

{"labels":["2019-1","2019-2","2019-3","2019-4","2019-5","2019-6","2019-7","2019-8","2019-9","2019-10","2019-11","2019-12","2020-1","2020-2","2020-3"],"series":[{"name":"N/A","data":[99377,133788,158628,97578,92519,101461,92730,84970,87303,96463,90562,83045,96676,89567,53961]},{"name":"Male","data":[32677]},{"name":"Female","data":[1405]}]}

As it is the first item in data series, I'd expect it to be drawn also in the first label, but for some reason it is being drawn approximately in the middle of the chart.

Here is demo:
https://typescript-cp1b6z.stackblitz.io

Here is code:
https://stackblitz.com/edit/typescript-cp1b6z

dangreen added a commit that referenced this issue Oct 5, 2022
fixes multi series charts rendering

fixes #1235
dangreen added a commit that referenced this issue Oct 5, 2022
fixes multi series charts rendering

fixes #1235
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant