You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When plotting multiple y-axes each with multiple series assigned, using xy zoom selection results in the range for all y-axes other than the first in the list of the y-axes being incorrect.
Steps to Reproduce
See details in reproduction link section.
Expected Behavior
When zooming with xy selection, visible y-axes min and max ranges are set using the user's selection.
Actual Behavior
When zooming with xy selection axis ranges are assigned in order of the yaxes list regardless of whether they are visible or not.
Using the chart in the link above, open the console and make a zoom selection. In the console, note the ranges that have been attributed to each axis. Axes with ids 0 and 1 are for Series 1 data. Axes with ids 2 and 3 are for Series 2 data. The range for the second visible axis is assigned to the second axis (id 1) instead of the correct axis (id 2). This results in the range of any y axes other than the first visible axes to be incorrect.
The text was updated successfully, but these errors were encountered:
I confirm this as an issue and note that this appears to have been working in revision 3.45.2.
In the current version, if I change from old-style yaxis.seriesName to the newer style as follows (added in 3.46.0 or 3.47.0), it appears to behave as expected.
There is supposed to be full compatibility between the old and new configuration styles but it appears that the mapping of y-axis indices was missed in some or all of the zoom selection code.
Description
When plotting multiple y-axes each with multiple series assigned, using xy zoom selection results in the range for all y-axes other than the first in the list of the y-axes being incorrect.
Steps to Reproduce
See details in reproduction link section.
Expected Behavior
When zooming with xy selection, visible y-axes min and max ranges are set using the user's selection.
Actual Behavior
When zooming with xy selection axis ranges are assigned in order of the yaxes list regardless of whether they are visible or not.
Screenshots
Screen.Recording.2024-07-09.at.2.21.40.PM.mov
Reproduction Link
https://codepen.io/Alan-Kalbfleisch/pen/WNqbQRg
Using the chart in the link above, open the console and make a zoom selection. In the console, note the ranges that have been attributed to each axis. Axes with ids 0 and 1 are for Series 1 data. Axes with ids 2 and 3 are for Series 2 data. The range for the second visible axis is assigned to the second axis (id 1) instead of the correct axis (id 2). This results in the range of any y axes other than the first visible axes to be incorrect.
The text was updated successfully, but these errors were encountered: