Is there a way to set a minimum time range in the Horizontal

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

Is there a way to set a minimum time range in the Horizontal

Post by Jakob Vad Nielsen » Mon Aug 26, 2002 2:57 pm

Hi there,

Is there a way to set a minimum time range in the HorizontalDateAxis class?

I'm having a graph that shows stock information. The problem is when we are viewing a graph just after the Exchange has opened. Then we only have one or two values/prices for the stock. Therefor JFreeCharts splits the horizontal date axis into minutes or seconds. We don't want that to happen. The minimum interval should be 30 minutes.

Anyone?

David Gilbert

Re: Is there a way to set a minimum time range in the Horizo

Post by David Gilbert » Tue Aug 27, 2002 4:38 am

Hi Jakob,

There's not a way to set a minimum range and still have the auto-range calculation working...you'd have to set the range manually, then switch back to auto-range once you have enough data.

I can see that it would be a useful feature, so I'll add it to my to-do list.

Regards,

DG.

Locked