How to do double domain crosshair using jFreeChart

2019-08-09 03:11发布

问题:

How can I implement the double domain cross-hairs for my jfreechart? Here is the requirement I need to honor.

The image is photo edited to show my requirement.

Thanks in advance

回答1:

You can use a ValueMarker, as shown here. You'll need to set the dash attributes in your Stroke; DEFAULT_GRIDLINE_STROKE is an example.