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 option is broken #9395

Closed
Jurkovic opened this issue Jul 12, 2021 · 0 comments · Fixed by #9400
Closed

minBarLength option is broken #9395

Jurkovic opened this issue Jul 12, 2021 · 0 comments · Fixed by #9400

Comments

@Jurkovic
Copy link

Hello there. Dataset option minBarLength seems to be broken. Top border of bar element is not rendered at all and tooltip of such a bar element seems to be misplaced. This is really nice option to achieve zero values compensation especially when _model was removed in chartjs 3.

Expected Behavior

Top border of bar element should be properly rendered and tooltip should be placed to the top of the bar element (I'm not sure if this was intention or if it is bug)

Current Behavior

Top border of bar element is not rendered when using minBarLength with some borderWitdth. Also tooltip is placed to the center of x label.

image
image

Steps to Reproduce

https://stackblitz.com/edit/angular-ivy-qe8mdm?file=src/app/app.component.ts

Context

For purposes of my project, this should work correctly in order to indicate difference between zero value and no data states.

Environment

  • Chart.js version: 3.4.1
  • Browser name and version: Google Chome 91.0.4472.114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants