开发者

jfree line chart display value for every index

I am trying to create a using jfree chart library line chart and i need to display the value associated with each index in the lineChart, I cannot use a tool tip for this because I am converting the chart into an image , is there a way of displaying the v开发者_运维技巧alue on top of each index?

Thanks, Bhavya


Depending on your needs, several option are available:

  • Use an org.jfree.chart.labels.XYItemLabelGenerator, shown here and here.

  • Use a suitable one of the many org.jfree.chart.annotations, shown here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜