Search found 3 matches

by tukosito
Fri Mar 21, 2014 4:04 pm
Forum: JFreeChart
Topic: Panning on PeriodAxis -- double rounding, range expanding
Replies: 4
Views: 5940

Re: Panning on PeriodAxis -- double rounding, range expandin

After facing the same problem I've found that setting the autorange time period class to Millisecond.class solved the issue: PeriodAxis axis = .... axis.setAutoRangeTimePeriodClass( Millisecond.class ); Note that even having set it to Millisecond I'm using the axis to display bigger periods (such as...
by tukosito
Fri Aug 23, 2013 10:32 am
Forum: JFreeChart
Topic: how to customize the coordinates?
Replies: 3
Views: 4655

Re: how to customize the coordinates?

What you probably want is to set the range of the data, not the axis. The axis is the component that displays the labels and the ticks with information about the charted data. The axis object contains methods to decide whether the chart will be adjusted to all the data or other limits are going to b...
by tukosito
Mon Aug 19, 2013 10:38 am
Forum: JFreeChart - Stockmarket
Topic: How to use mouse wheel to zoom in(out) ?
Replies: 3
Views: 48868

Re: How to use mouse wheel to zoom in(out) ?

Since 1.0.13, ChartPanel has an setMouseWheelEnabled(boolean) property that enables the wheel.

PS: I know that the thread is old, but it is one of the first results in Google, so it may be interesting.