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

Label distance from Bar in Bar Chart #19

Closed
joao-m-santos opened this issue Dec 11, 2017 · 4 comments
Closed

Label distance from Bar in Bar Chart #19

joao-m-santos opened this issue Dec 11, 2017 · 4 comments

Comments

@joao-m-santos
Copy link

Hello, I'm having trouble finding a way to distance the value from the label of a Bar in a vertical Bar chart from the Bar itself. Is this a feature that does not exist, or am I just overlooking something?

Thanks for your attention.

@simonbrunel
Copy link
Member

simonbrunel commented Dec 11, 2017

I think you are looking for the offset option (which only apply to align !== 'center').

@joao-m-santos
Copy link
Author

I've tried the offset option but indeed it doesn't work. Here's a simple image showing what I mean:
On the left is what I currently have and on the right is my objective.

barproblem

@simonbrunel
Copy link
Member

simonbrunel commented Dec 11, 2017

I think your left screenshot uses align: 'center' (which is the default)?

This should work:

{
    align: 'end',
    anchor: 'end',
    offset: 8
}

@joao-m-santos
Copy link
Author

Yes, that was it! Thanks alot ;)

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