-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
[Feature] Get calculated max/min value of yaxis #17021
Comments
As is designed, axis scale will automatically fit the user data so users won't worry about adjusting axis. What effect are you trying to attain? |
Here's my use case: |
Do you mind providing a similar option to test with? Also, do you mean that you want all gray bars to be at 250 in this picture? |
Exactly. I first tried to draw the grey rectangles using the graphic option. That does not work due to the unknown specific coordinates. |
You can use Code Sample
|
|
Thanks for pointing me to There seems to be an error in the documentation:
|
Right, so you might have to use position relative to DOM to locate the gray bar like what I did in the code sample here |
The issue at hand is that the chart is a non-static time line. The number of items of the xaxis is changing over time, so you cannot determine the necessary percentages. |
What problem does this feature solve?
I would like to retrieve the automatically calculated min/max value of an yaxis.
What does the proposed API look like?
I'm unsure about this. There seems to be no getter API except for chart.getOption(). Using this seems like a hack as the option property would only be readable but not writable using setOption().
option.yAxis[1].minCalculated
The text was updated successfully, but these errors were encountered: