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

Bottom margin between bar and x axis #126

Closed
verofy-simon-denny opened this issue Apr 4, 2022 · 5 comments
Closed

Bottom margin between bar and x axis #126

verofy-simon-denny opened this issue Apr 4, 2022 · 5 comments

Comments

@verofy-simon-denny
Copy link

Hi,

I just wondered if there was a way of adding a margin between the bottom of a bar and the x axis in the bar chart? I know you can use marginbottom with the stacked chart between the sections of the bar, but I want to be able to add a margin in a normal bar chart at the bottom.

Many Thanks, Simon.

@Abhinandan-Kushwaha
Copy link
Owner

Hi @verofy-simon-denny 👋

This is perhaps not available in the current version. I have added it to the Todo list. Will be adding this feature in the next release.

@verofy-simon-denny
Copy link
Author

Amazing, thanks for letting me know.

@Abhinandan-Kushwaha
Copy link
Owner

Hi @verofy-simon-denny 👋
The prop barMarginBottom is now added in version 1.0.17🎉
barMarginBottom can also be added as a property inside data objects.

@manuelf45
Copy link

manuelf45 commented Nov 14, 2024

Hi @Abhinandan-Kushwaha
Could you also add a bottom margin between each stack bar item and x axis?

@Abhinandan-Kushwaha
Copy link
Owner

Thanks @manuelf45 for requesting this feature. barMarginBottom is now available for stacked Bar charts also from versions 1.4.48 onwards. 🎉

Please use the latest version of the library.

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

3 participants