New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zero values are shown, when "barThickness" is set #11714
Comments
Thanks for posting an Issue And Helping the community ! As per my research, I have found some causes and bugs, which I will disclose in the next few working days/weeks as I am a little busy. However rest assured I will try to find the bug and fix it in the next commit
|
Solved : Issue #11714There is an amazing news, @TomTom-Labs 🎊 Your revised code is given as a Code pen If there is any further problem, please do not hesitate more further. Fwd to Issue #11714 corresponding @TomTom-Labs |
@TomTom-Labs |
Hi @JigmetAvinash But, sorry to say, I consider this as a workaround, not a solution. After I process all my data to construct a valid chat.js dataset, I need a post-processing step to replace all 0-numbers by null. This isn't the best solution. I'm fine right now, as I have a workaround, but there might be others who run in the same issue. But thanks for looking into it and document - in case someone searches for this issue. |
I am extremely sorry if this didn't seem to go upto the par 😢 |
Hi @JigmetAvinash
If I follow your argumentation that 0 is intended to have a 1-pixel bar (which sounds BTW: very strange to me) than the bug is in the opposite way – if I don’t set "barThickness", the 1-pixel line is missing. 😉 |
Absolutely! |
Expected behavior
Values of "0" (zero) should not be shown in a bar chart.
Current behavior
When barThickness is set to a pixel width, a bar is drawn (very small hight, may just 1 pixel, but it's there)
This can be particularly problematic in a chart displaying numerous empty data samples with the 0-x-axis depicted in the middle of the diagram. With barThickness enabled, users might erroneously interpret these bars as representing small values.
Reproducible sample
https://codepen.io/TomTomDev/pen/zYXBmGo
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v4.4.2
Browser name and version
Chrome Version 122.0.6261.112
Link to your project
No response
The text was updated successfully, but these errors were encountered: