Skip to content
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 not working at all. #6212

Closed
debuysserk opened this issue Apr 17, 2019 · 4 comments
Closed

minBarLength not working at all. #6212

debuysserk opened this issue Apr 17, 2019 · 4 comments

Comments

@debuysserk
Copy link

Expected Behavior

Bars should be a minimum height to be visible when value = 0.

Current Behavior

Bars are not set to the minimum bar length specified in the config.

Steps to Reproduce (for bugs)

See simple code example at https://jsfiddle.net/u3w749d1/

@kurkle
Copy link
Member

kurkle commented Apr 18, 2019

Its not supposed to work in Chart.js v2.3.0 that your fiddle is using.
Works fine with v2.8: https://jsfiddle.net/37Lsxdkh/

@kurkle kurkle closed this as completed Apr 18, 2019
@debuysserk
Copy link
Author

Hmm, ok, well, it wasn't supposed to be this old version (forked an example from someone else) but case still stands because the version we're using was 2.7.3 so I'll update it. Thanks!

@SimoneMSR
Copy link

It seems the problem arises when in the dataset the 0 value is missing

@SimoneMSR
Copy link

Actually the minBarLength behaviour is not unvariant for dataset values. See here, where:

  • large numbers seems to break the behaviour
  • dataset values order/ datasets order seem to vary the behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants