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

Changing width of the bar in bar chart #820

Closed
LekhaP opened this issue Mar 9, 2016 · 1 comment
Closed

Changing width of the bar in bar chart #820

LekhaP opened this issue Mar 9, 2016 · 1 comment

Comments

@LekhaP
Copy link

LekhaP commented Mar 9, 2016

Hi
Is there any way to set specific width for bar in bar charts. And keep the width of bars constant irrespective of how many entry are added to the bar data.
I couldn't find any property to do that.

Could somebody help!
Thanks in advance.

Lekha

@liuxuan30
Copy link
Member

take a look at barSpace and groupSpace the bar width will shrink with the increasing of entries, it cannot be a fixed value no matter how many entries there. Think about you have 1000 bars to draw in a rect, comparing to if only 10 bars to draw. The logic is fill the rect
And if you really want this, then you can customize the bar chart renderer, to make the barRect width what you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants