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
Change the xAxis crossing to 2. observe -2 crossing
Change the yAxis min or max values (ensure they are not symmetrical). observe xAxis crossing changes position and is not at the expected crossing value.
Compare that to the yAxis crossing which is acting as expected.
Change the yAxis crossing to 2. observe +2 crossing (as expected)
Change the xAxis min and max values. observe that the yAxis still crossed the xAxis at the position specified (i.e. +2)
Product version
Highstock and Highcharts 11.0.1
Affected browser(s)
Chrome (not tested on any others)
The text was updated successfully, but these errors were encountered:
Hi @BookSwapSteve and thank you for testing our new feature!
Issue with xAxis
For now, you can use the workaround (demo) applied to the core or revert the values in the crossing configuration for symmetrical axes.
In the meantime, @TorsteinHonsi could you please confirm this is how it should work?
Issue with yAxis
The offset calculation is off. Make sure the toPixels returns correct values and they are correctly added/subtract from the existing one.
Additionally, IMO the directionFactor should be unified with what we have: directionFactor = [-1, 1, 1, -1]
Expected behaviour
The xAxis should cross the perpendicular axis (yAxis) at the value specified by the 'crossing' value
From: https://api.highcharts.com/highstock/xAxis (crossing)
Example:
Example 1:
The xAxis should cross at the value 2 on the yAxis, it actually crosses at -6
Example 2:
The xAxis should cross at the value 2 on the yAxis, it actually crosses at -2
Actual behaviour
The x-Axis crosses the y-Axis at a value that is the inverse of the crossing value specified and offset based on the axis min/max values.
From example 1, the xAxis crosses the yAxis at -6
From example 2, the xAxis crossed the yAxis at -2
Live demo with steps to reproduce
https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/xaxis/crossing
Compare that to the yAxis crossing which is acting as expected.
Product version
Highstock and Highcharts 11.0.1
Affected browser(s)
Chrome (not tested on any others)
The text was updated successfully, but these errors were encountered: