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 value 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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.