Drawing annotation shapes without graph scaling

后端 未结 2 1070
予麋鹿
予麋鹿 2021-01-24 17:31

I\'m creating graphs using JFreeChart:

\"enter

The problem should be fairly clear.

2条回答
  •  清歌不尽
    2021-01-24 18:09

    As an alternative, try one of the scale-invariant annotations such as XYImageAnnotation or XYPointerAnnotation. For example,

    chart.getXYPlot().addAnnotation(
            new XYPointerAnnotation("Bam!", pointX, pointY, 0));
    

提交回复
热议问题