Skip to content

Commit

Permalink
Fixed #5424, crosshairs overlapping when there is multiple axis with …
Browse files Browse the repository at this point in the history
…equal positions.
  • Loading branch information
jon-a-nygaard committed Apr 20, 2017
1 parent 6d51376 commit fd6f1a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/parts/StockChart.js
Expand Up @@ -282,7 +282,13 @@ wrap(Axis.prototype, 'getPlotLinePath', function (proceed, value, lineWidth, old
// lines (#2796).
uniqueAxes = axes.length ? [] : [axis.isXAxis ? chart.yAxis[0] : chart.xAxis[0]]; //#3742
each(axes, function (axis2) {
if (inArray(axis2, uniqueAxes) === -1) {
if (
inArray(axis2, uniqueAxes) === -1 &&
// Do not draw on axis which overlap completely. #5424
!H.find(uniqueAxes, function (unique) {
return unique.pos === axis2.pos && unique.len && axis2.len;
})
) {
uniqueAxes.push(axis2);
}
});
Expand Down

0 comments on commit fd6f1a3

Please sign in to comment.