Sliding candle stick graph

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
kha
Posts: 4
Joined: Tue Sep 08, 2009 7:56 am
antibot: No, of course not.

Sliding candle stick graph

Post by kha » Tue Sep 08, 2009 10:00 am

Hi,

I so far have developed a candle stick graph based on the DefaultOHLCDataset. In case I have data to be displayed > 1 year I have to provide the possibility to scroll. For this I need to keep the y-axis always being displayed and the x-axis depending on the scroller to be moved.

It is similar to the idea of the SlidingCategoryDatasetDemo2 example, but the dataset is a different one which is unfortunately not compatible with the DefaultOHLCDataset.

Can anyone give me a hint from which class I have to derive from and/or how to tackle this issue in general reusing the idea of the SlidingCategory examples ?

Kind regards,
kha

kha
Posts: 4
Joined: Tue Sep 08, 2009 7:56 am
antibot: No, of course not.

Re: Sliding candle stick graph

Post by kha » Fri Sep 11, 2009 4:55 pm

Hi,

after some investigation, the easiset way is the reuse the idea of the scroller (and its assigned ChangeListener) from the SlidingCategoryDatasetDemo. You need to implement your own ChangeListener though.

k

Locked