-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
Axis tick auto align on multiaxis #10928
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer. Have a nice day! 🍵 |
Much needed ! |
This is an important feature and we should have some further discussion about it. Probably it's not easy to implement this and may be done in v5.0. |
I need this feature too! |
这个问题是不是短期内不会处理了? |
@tidemarks 这个改动影响面很大,需要很多验证,所以短期不会合入。 |
这个issue开了3年了,你指的短期是多少年呢? |
What problem does this feature solve?
I want to have a functionality which allows the user to have the same number of ticks on every parallel axis.
i.e. I have 2
yAxis
, but the auto ticks calculation gives me 6 ticks for one axis and 5 for the other. The difference creates irregular spacings between the split lines, which is not really good for user experience.Here is the sample
option
code:And here is the sample result:
My request is based on the HighCharts library, which provides an API called
alignTicks
, which does the same thing as I described here.What does the proposed API look like?
Let's say we have a boolean attribute
yAxis.axisAutoAlign
. By setting it to true, its ticks will get aligned with every other axis in theyAxis
array which has the same boolean totrue
. That way, if one of the axis has 6 ticks, all the other axis will also have 6 ticks and get nicely aligned altogether.The text was updated successfully, but these errors were encountered: