Scrolling again

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

Scrolling again

Post by Harald Faber » Mon Sep 02, 2002 9:58 am

Hi David and all others,
idea: To scroll the StackedVerticalBarChart in a way that one can select how many categories are displayed in a view and scroll further and backwards.

E.g. there exist 10 categories, displayed are only the first 6 of them and user may scroll further to see 2-7, 3-8 etc., so that always 6 categories are displayed at one time in the Chart.
At the moment I don't see any chance to implement such a function in my Chart. Any idea if and how this could be possible?

Thanks in advance,
Harald
(Computerchess interested people get some information on my private homepage www.harald-faber.de)

David Gilbert

Re: Scrolling again

Post by David Gilbert » Mon Sep 02, 2002 10:23 am

One idea I have thought about is to add a clickable region to each end of an axis. When the mouse-click is captured, the axis range could be modified which would be like scrolling. Not great from a UI-design point of view, but it might meet a few requirements.

Regards,

DG.

Harald Faber

Re: Scrolling again

Post by Harald Faber » Mon Sep 02, 2002 11:47 am

Thx for your quick answer, but I tend to prefer kind of "rotating" the Dataset and re-paint the chart. Isn't it a better solution (of course it is still a dirty solution)?


BTW I have finished the Nominal/Actual StackedVerticalBarChart you might remember. But I think it will be hard to contribute it because there have been made many changes in the plot, in the renderer, in the Tick and some more tricks in the Dataset.

Locked