Determining max/min values on XYPlots, then force axis setti

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
garyn87048
Posts: 13
Joined: Sat Nov 29, 2003 5:38 am

Determining max/min values on XYPlots, then force axis setti

Post by garyn87048 » Thu Feb 12, 2004 3:01 am

:?

I have a two part question. I'm graphing data on XYPlots where some plots have dates on the x axis and some plots are numeric on the x axis (the y axis is always numeric). Once the graph is created, I want to be able to determine what max/min values were assigned to both the x and y axis (part 1). Next, I would like to able to set the maximum and minimum axis values so that I can begin to filter out flyer data (part 2). The plots are being generated by a servlet.

I have the documentation, but I didn't see these details in ch22 (the axis). In ch20 (swing) there was a cool section on properties/printing/saving/zooming. Are there equivalent features for servlets?

Thanks for the help!!! :D

Gary

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

Post by david.gilbert » Thu Feb 12, 2004 11:34 am

You can use the getRange() method in the ValueAxis class to get the current axis range, and the setRange() method to change it.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked