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
Allow X/YAxis to start be anchored to a certain value like ReferenceLine #4321
Comments
Hmm.. I don't think it's right to say that the X axis should always be at 0. In fact, I think most of the time with negative values it should stay at the bottom of the chart like it is. The axis would end up getting in the way and the labels would be hard to read. Take another charting library for example https://www.highcharts.com/demo/highcharts/column-negative Can you give a mockup of what you want? I'm not sure it's going to look good with the axis and its labels in the middle of the chart |
Hi, |
You can definitely keep the XAxis, hide it with I'll try to see if there are any options to make a custom axis in a bit, currently replying from my phone so can't test anything |
I have tried to acheive with reference line and custom tick. But need to identify the exact position of zero tick so that i can postion the custom ticks to y position.
https://stackblitz.com/edit/vitejs-vite-e7d1ag?file=src%2FApp.tsx |
edited the title to make the issue easier to find later |
Reproduction link
https://stackblitz.com/edit/vitejs-vite-gmc1wp?file=README.md
Steps to reproduce
What is expected?
The xaxis orientation should be always at 0 of yaxis
What is actually happening?
The xaxis orientation is now at bottom with minValue of yaxis.
The text was updated successfully, but these errors were encountered: