chartjs / chartjs/Chart.js

Group a line dataset in a group of bars

Open
#10,756 0 comments 0 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

As of now it is not possible to combine a group of bars together with a line (organ dots) that provides values corresponding to the same amount of bars in the group to be able to achieve the following result:

![image](https://user-images.githubusercontent.com/7623375/194309501-ebae3774-9c5d-4fde-8e52-011baa0be16d.png)

The limitation is that when grouping bars the inner bar distance is shrinked by default. However this won't apply to the line dataset.

One approach could be to use two separate x-axes. However, with this solution the dots appear misaligned as they're not treated as the bars inside the group. Compare with https://jsfiddle.net/onesev/bpcLs7uz/

### Possible Implementation

_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.