chartjs / chartjs/Chart.js

Allow each bar in a bar chart to have a different width

Open
#9,775 6 comments 4 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Feature Proposal

Currently, the `barThickness` option only takes a single number as input. If we could pass in an array, then each bar could have its own width.

This is similar to properties like `backgroundColor` and `borderColor`, which can take a single value or an array of values for each point in the dataset.

### Feature Use Case

I'd like to make a bar chart where the width of the bar indicates the "size" of that category (the y-axis measures an average of all points in that category).

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.