chartjs / chartjs/Chart.js

minBarLength fails for some datasets

Open
#10,487 2 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

there should be a minimum bar length, if this property is specified

### Current behavior

some datasets fail to show any bar length, like this:
https://codepen.io/nmz787/pen/zYWZZXG

### Reproducible sample

https://codepen.io/nmz787/pen/zYWZZXG

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

This makes hovering over the bar for the tooltip popup a little tricky and maybe unintuitive for new users to my page/site.

### chart.js version

3.8.0

### Browser name and version

chrome, Version 103.0.5060.114 (Official Build) (64-bit)

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.