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
minBarLength documentation is incorrect #7174
Comments
What version of Chart.js are you using? I believe if you're using the latest (2.9.3) it should work in either location |
@benmccann I'm currently using version version 2.8.0 so I'll give it a try in 2.9.3 and see if it works |
Cannot get the minBarLength setting to work to, it just doesn't have any effect. I am using 2.9.3 and having the option in the dataset configuration.
This issue should be reopened: |
I believe that minBarLength makes a small bar starting at zero in the same direction as the sign of the value (in the positive direction if the value is zero). This can cause the bar to not show up in a couple of situations:
|
It seems the problem here is that @kurkle I think this should be an easy fix. Thoughts? |
Anyway, it would still be feasible to have a visible bar when there is a value even when
There are some other use cases where I would need a scale to have a certain max value and and a certain amount of pixels to that. So I'd tend to move this problem to the scale somehow. |
This is much closer with v3.7.1 but still requires one extra setting to manually set the base value of the dataset to the minimum y axis value. https://jsfiddle.net/2bw8gv0y/ |
I was having trouble getting the minBarLength to work. After looking online for a solution I found #6212. In there Everybody was using the minBarLength in the scales options. I tried it out and this works, but in the documentation it shows the property being used in the dataset object
The text was updated successfully, but these errors were encountered: