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

Override bar width for discreteBar and discreteBarChart #2119

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

josemf
Copy link

@josemf josemf commented Oct 25, 2017

Added an option overrideBarWidth. Allows to user supply a fixed bar width and a padding.

chart.overrideBarWidth({ width: 35, padding: 8 }) // 35 pixel width with 8 pixel padding between the bars

chart.overrideBarWidth(35) // 35 pixel width with no padding

When wrapLabels=false (default behaviour) will wrap any label on any …
…ion based on data length and defines a way to define fixed bar width and padding for bars and legends.

Available in discreteBar and discreteBarChart
@liquidpele
Copy link
Contributor

don't include build files, only src files in the PR

@liquidpele
Copy link
Contributor

Any update?

Copy link
Author

@josemf josemf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted generated files

@josemf
Copy link
Author

josemf commented Mar 2, 2019

Sorry I didn't really followed up on this.

I'm not actually using this code anymore, feel free to remove this PR if not relevant now.
Thanks.

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

Successfully merging this pull request may close these issues.

2 participants