Set X Tick Interval Dynamic

A discussion forum for JFreeChart (a 2D chart library for the Java platform).

Set X Tick Interval Dynamic

Postby penHa » Thu Sep 28, 2017 7:36 pm

Hi guys,

I´ve got an AreaChart where I want to render the x-tick-interval depending on the amount of x axis labels the chart gets.

For example:
12 Days with data (12 labels on the x axis), the x-tick-interval should be 1
Image


More than 12 Days with data (more than 12 labels on the x axis), the x-tick-interval should be 2
Image


I´ve got an Idea but I dont know which methods to use from jfree chart to get the amount of x axis labels and the method to set the x-tick-interval.
Please help.
penHa
 
Posts: 1
Joined: Thu Sep 28, 2017 7:29 pm

Return to JFreeChart

Who is online

Users browsing this forum: No registered users and 11 guests