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

Any option to add Group bar padding/spacing #3145

Open
supriyaKadam1994 opened this issue Mar 21, 2023 · 1 comment
Open

Any option to add Group bar padding/spacing #3145

supriyaKadam1994 opened this issue Mar 21, 2023 · 1 comment

Comments

@supriyaKadam1994
Copy link

In chart basically when there is less data chart will take all width generating more spacing between group data, and with large data bars get mixed up with each other.
ex.:
with small set of data
image

with large data
image

So, is there is any way to add group-spacing padding,
image

@netil netil added the question label Mar 21, 2023
@netil
Copy link
Member

netil commented Mar 21, 2023

Hi @supriyaKadam1994, this can't be achieved by an option.

When something "group spacing" option is specified, the bars width need to be narrowed according whole chart's width size. And if the total of bar to be represented on each x axis step increases, to keep "group spacing", each bar's width need to be more narrowed relatively.

In this scenario, there will be some limit of bar counts for each x axis steps and it can't reflect or make a room for space. So, I can't find any rational on this.

If want to make bars having some space on each steps, consider bars to be represented as "stack" or adjust bar's width using bar.width, bar.width.ratio option instead.

@netil netil added the wontfix label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants