How can I put values of a charline in y axis


How can I put just the values of my linechart in the y axis

The values are 22,21,23,25,19. And I want to show all the values in y axis, not only 20,25

My linechart looks like this

enter image description here

And I want to show values in y axis, like that

enter image description here

maycarb's picture
Joined: Jan 24 2019 - 4:02pm
Last seen: 3 months 2 weeks ago

1 Answer:


For JFreeChart, you can try setting this property:

net.sf.jasperreports.chart.range.axis.tick.interval to 2 as it defines the interval between two consecutive ticks.

vchiem's picture
Joined: May 1 2017 - 5:33pm
Last seen: 3 hours 13 min ago