AutoRange NumberAxis to visible values

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
rudolf
Posts: 2
Joined: Fri Jan 21, 2005 9:56 am
Location: Austria
Contact:

AutoRange NumberAxis to visible values

Post by rudolf » Fri Jan 21, 2005 11:05 am

Is it possible to autorange, or at least calculate the autorange for the numberaxis manually, after setting the domainaxis to a specific range?

I've used the sample code of the TimeSeriesDemo11.java

Code: Select all

SerialDate t6m = SerialDate.addMonths(-6, t);
Day sixMonthsAgo = new Day(t6m);
axis2.setRange(sixMonthsAgo.getStart(), today.getEnd());    
to set the range of my domain axis. However the autorange method still calculates the number axis range for all values in the dataset. Is it possible to calculate the minimum / maximum number axis values for the visible data points only? [/code]

david.gilbert
JFreeChart Project Leader
Posts: 11732
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Jan 21, 2005 11:21 am

Unfortunately not yet - it is something that desperately needs fixing.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide

Post Reply