From: Justin Johnson <justinj@st...> - 2003-02-14 21:19:50
I've been scouring the newsgroups trying to figure this out, and I'm still
stumped. I have a timeseries chart display data for every half hour. The
dates display as hh:mm, but I want to display the date at automatically
determined periods. I had a servlet that would display the date at the
beginning of the week if I was viewing a month of data, and every month if
viewing a year of data, etc... and it appeared to be computing it
automatically, not based on my code.
I see how to set the format using code like the following:
TickUnits tickUnits = new TickUnits();
SimpleDateFormat("yyyy-MM-dd HH:mm:ss z")));
But I don't want to have to specify when to display the label, just how to
Is there a way to have jfreechart do the work for me? Like, it knows what
format to use and when to use it.