Jump to content

DomainAxis Value


nnvc

Recommended Posts

Hello!!

I am create a TimeSerieChart with JFreeChart, and then exporting it in a PDF file.

My concern is about the values for the DomainAxis. It´s a DateAxis type. I have a big range os values it can be day, months, or years.

As I can´t show all the labels in the chart so used the axis.setTickUnit().

for example:

  DateAxis axis = (DateAxis) plot.getDomainAxis();

   axis.setTickUnit(new DateTickUnit(DateTickUnit.MINUTE,30));  

If I have the values for one day, it will show me the labels in every 30 minutes.

I also set the range : axis.setRange(minDt,maxDt);

when the chart is created the domain labels don´t have the values that I added in the creation of the dataset. And also the value of the first date isn´t the one that is in range.

 

Anyone have a clue to solve this.

Thanks in advance.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...