TImeSeries Labels at Midnight

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

TImeSeries Labels at Midnight

Post by James Birchfield » Thu May 02, 2002 12:47 am

I am plotting several datapoints spanning several days. I want to be able to display the X axis labels at every midnight point. Is there a built-in way to do this?

Jim

P.S. We are currently using JClass, but can't get it to do what we want.

Thanks!

David Gilbert

Re: TImeSeries Labels at Midnight

Post by David Gilbert » Fri May 03, 2002 10:30 am

I think if you do this:

myDateAxis.setDateUnit(new DateUnit(Calendar.DATE, 1));

...then you will get tick labels at the beginning of each day.

The date axis code is a bit messy and is being revised at the moment to work more along the lines of what is being done with the NumberAxis class.

Regards,

DG.

Locked