I am working with JFreeChart in my Java application, and I have successfully implemented a chart with multiple axes. I have enabled crosshairs for both the domain and range axes using the following code:
this.plot.setDomainCrosshairVisible(true);
this.plot.setDomainCrosshairLockedOnData(true);
this.plot.setRangeCrosshairVisible(true);
this.plot.setRangeCrosshairLockedOnData(true);
This configuration displays a crosshair on mouse selection, providing valuable information about data points. However, my requirement is to enable two crosshairs on subsequent mouse selections. I would like to have the ability to see two crosshairs simultaneously, each responding to its own mouse selection.
If anyone has experience with implementing multiple crosshairs in JFreeChart or has suggestions on how to achieve this, I would greatly appreciate your insights or example code snippets.
