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

BarChart XAxis between Positive & Negative Values #2036

Closed
niklas-hein opened this issue Jan 5, 2017 · 1 comment
Closed

BarChart XAxis between Positive & Negative Values #2036

niklas-hein opened this issue Jan 5, 2017 · 1 comment

Comments

@niklas-hein
Copy link

I am trying to get the xAxis of a Barchart into the center between positive and negative values.
Here is what I am trying to achieve:

screen shot 2017-01-05 at 15 58 50

I managed to get the Labels of the xAxis into the center and this is the closest I got so far:

screen shot 2017-01-05 at 16 01 25

@liuxuan30
Copy link
Member

I remember x axis labels can't be drawn in the middle.
If you want to do so, you have to override x axis renderer to draw around the zero line. Drawing zero line is a feature, so you can refer that to know what's the y point to draw it.

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