Skip to content

Vertical center text/values inside bars #3524

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

Closed
jorgemonte opened this issue Feb 7, 2019 · 1 comment
Closed

Vertical center text/values inside bars #3524

jorgemonte opened this issue Feb 7, 2019 · 1 comment
Labels
feature something new

Comments

@jorgemonte
Copy link

Hello everyone,

Is there a way to place the values inside a bar-chart vertically centered?
They keep aligned at the top but I need them centered.

Thank you!
bar-bug

@etpinard
Copy link
Contributor

etpinard commented Feb 7, 2019

Not at the moment unfortunately.

These are the only current text-position settings available:

textposition: {
valType: 'enumerated',
role: 'info',
values: ['inside', 'outside', 'auto', 'none'],
dflt: 'none',
arrayOk: true,
editType: 'calc',
description: [
'Specifies the location of the `text`.',
'*inside* positions `text` inside, next to the bar end',
'(rotated and scaled if needed).',
'*outside* positions `text` outside, next to the bar end',
'(scaled if needed), unless there is another bar stacked on',
'this one, then the text gets pushed inside.',
'*auto* tries to position `text` inside the bar, but if',
'the bar is too small and no bar is stacked on this one',
'the text is moved outside.'
].join(' ')
},

Merging this ticket with #3117

@etpinard etpinard closed this as completed Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

2 participants