Problem with overriding refreshTicksHorizontal

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Narayan
Posts: 30
Joined: Wed Apr 11, 2007 11:20 am
Location: Bangalore

Problem with overriding refreshTicksHorizontal

Post by Narayan » Sat Jun 30, 2007 5:14 am

Hi All,

I am facing this problem when I am overriding the refreshTicksHorizontal.

Suppose I have only one date say May 22.. If I do
getMinimumDate() I am getting the date as "Sat May21 23:59:59 IST 2007". and getMaximumDate() as "Sun May 22 00:00:00 IST 2007". But since I have a single date I want to display only that date. How can I get the exact date i.e.
If I give data for May 21 then min and max date are both May 21.
If I give data from May 21 to May 25 then the min date is May 21 and max date is May 25.

Regards,
Narayan

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jul 02, 2007 6:50 am

By overriding the refreshTicks() method you have the opportunity to supply the list of values and labels that will be displayed along the axis. At that point, the axis range is already determined, so I'm not sure what you want to do with the min/max dates?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked