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
It seems that CrosshairOverlayFX currently doesn't support CombinedDomainXYPlot. When you add it as an overlay (viewer.canvas.addOverlay(crosshair)) it will issue a NPE because it's unable to find a valid plot instance here:
A potential solution is to let CrosshairOverlayFX accept the right plot in the constructor. In this case, and I'm not sure the best way to account for this, you'll also need to update the yy value computation (e.g. for vertical combined plots) so that the crosshair shows at the right height:
It seems that
CrosshairOverlayFX
currently doesn't supportCombinedDomainXYPlot
. When you add it as an overlay (viewer.canvas.addOverlay(crosshair)
) it will issue a NPE because it's unable to find a valid plot instance here:jfreechart-fx/src/main/java/org/jfree/chart/fx/overlay/CrosshairOverlayFX.java
Line 67 in 83d824c
A potential solution is to let
CrosshairOverlayFX
accept the right plot in the constructor. In this case, and I'm not sure the best way to account for this, you'll also need to update theyy
value computation (e.g. for vertical combined plots) so that the crosshair shows at the right height:jfreechart-fx/src/main/java/org/jfree/chart/fx/overlay/CrosshairOverlayFX.java
Line 90 in 83d824c
For example, if the top chart has a weight of
2
and the bottom chart has a weight of1
, then the computation above needs to be multiplied by2/3
.The text was updated successfully, but these errors were encountered: