drawing a chart just consisting of an ValueAxis

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

drawing a chart just consisting of an ValueAxis

Post by christian funk » Mon Sep 30, 2002 12:45 pm

hi all (especially david),

i put an ChartPanel into a scrollabe JPanel. now i'm trying to find a way around the fact, that my ValueAxis disapears when scrolling to the right. my idea was, to draw another chart left of my scrollable chart, just existing of an ValueAxis and build my scrollable chart without an ValueAxis. but i can't find a way to do so .....

is it possible at all?

thx in advance for any help!

christian

David Gilbert

Re: drawing a chart just consisting of an ValueAxis

Post by David Gilbert » Mon Sep 30, 2002 6:14 pm

This is the main reason that scroll bars are not going to work very well with JFreeChart.

You could try writing an AxisPanel class, that keeps a reference to the chart but only renders the axis when an update is required (using the draw(...) method in the Axis class). It will probably work, but I think it is always going to be a messy solution.

Regards,

DG

Locked