Set time in HighLow chart

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

Set time in HighLow chart

Post by Jose Miguel » Wed Oct 02, 2002 12:53 pm

I´m using HighLow chart, and I need put hours in each HighLow element.
How can I do it? Thanks.

David Gilbert

Re: Set time in HighLow chart

Post by David Gilbert » Thu Oct 03, 2002 8:57 am

Hi Jose,

I'm not sure what you mean by 'put hours in each HighLow element'. Can you explain?

Regards,

DG.

Jose Miguel

Re: Set time in HighLow chart

Post by Jose Miguel » Thu Oct 03, 2002 11:52 am

I want write in HorizontalDateAxis the hour of HighLow element.

In my Chart is important show this hour, not only the automatic dates shown.

David Gilbert

Re: Set time in HighLow chart

Post by David Gilbert » Fri Oct 04, 2002 5:29 pm

You can create a DateUnit object that represents one hour, then use the setTickUnit(...) method in the date axis (this will change slightly in version 0.9.4 when it is released, because I have modified the DateAxis class a bit).

Regards,

DG.

Locked