Chart.js: Hide empty bars in grouped bar charts

Created on 1 May 2017  Â·  5Comments  Â·  Source: chartjs/Chart.js

I want to know if I can hide the empty bars from each group in a grouped bar chart.

Currently, in case there's an empty bar in a group, that space is shown empty. Can I reduce the spacing to be only as much as required by the remaining bars in that group?

graph

help wanted enhancement

Most helpful comment

It would be a very helpful feature !

All 5 comments

I don't think that's currently possible. @potatopeelings know's the most about grouped stacked bars though.

Hi, still not possible ?

image

It would be a very helpful feature !

Hi Team,
Can we remove empty bars in grouped bar charts.
Please help me for the same.

Ultimately the same issue as #2092, so closing in favour of that older issue

Was this page helpful?
0 / 5 - 0 ratings