-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Mixed chart y-axis scaling issue (with stacked true) #1371
Comments
I think all 3 need to be https://codepen.io/vincemat/pen/dyoJzjj
|
Yes, I understand that the scaling is based on the stacked of the 3 but in my case I would like to have a mixed chart (line+area stacked) without the scaling being the sum of the three but the max(A+C, B)... |
What you are expecting makes sense now, maybe you can add that to the issue description? |
@vincemat did you find any workaround to solve this issue? |
Indeed, the only solution is to specify a max option in yAxis properties... |
Setting a fixed max value doesn't work in all cases, since with it you loose the charts ability to dynamic adjust the Y-axis when a series is hidden via clicking the legend. So IMHO it would be best to calculate Y-Axis max value like this:
best regards |
I have the same problem. Has anyone already found a workaround (without loosing the ability to dynamic adjust the Y-axis)? |
I did not find any workaround yet... But I'm totally open to any idea because I'm quite stuck with this... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug report
Codepen
Please look at this codepen.
Explanation
I expect the y-axis to be set (near) to the max value (sum of area data or highest value of line data)
The y-axis is scaled based on the sum of the area + line data which lead to a wrong scaling of the chart
No error message, just a question of visualisation of data
The text was updated successfully, but these errors were encountered: