Fwd: Re: Scrolled chart still too small
Paru Somashekar
parvathi.somashekar at oracle.com
Fri Aug 10 12:20:43 PDT 2012
-------- Original Message --------
Subject: Re: Scrolled chart still too small
Date: Fri, 10 Aug 2012 11:02:06 -0700
From: Paru Somashekar <parvathi.somashekar at oracle.com>
To: Werner Lehmann <lehmann at media-interactive.de>
Hi Werner,
You can set the preferred size on the chart - something like
chart.setPrefSize(width,height) - to match the width& height of the
scrollpane.
thanks,
Paru.
On 8/9/12 10:38 AM, Werner Lehmann wrote:
> Hi,
>
> I am using charts, primarily a BarChart, to show aggregate or detailed
> report data. Depending on user configuration there can be many x-axis
> values (category axis) - more than are fitting into the window.
>
> Since charts do not support content scrolling (see
> http://javafx-jira.kenai.com/browse/RT-20732), I tried to wrap it into
> a ScrollPane. Unfortunately, the chart is still far too narrow with
> many x-axis values. How can I convince it to use whatever (horizontal)
> space it needs to fit all data? So far, I did not specify any
> min/pref/max sizes.
>
> Currently, the chart is maybe half the size of the scrollpane, forcing
> it to omit some values - although there would be more room in the
> scrollpane.
>
> Rgds
> Werner
More information about the openjfx-dev
mailing list