Automatic scalling (zoom)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Ceubex
Posts: 4
Joined: Mon Dec 27, 2010 2:03 pm
antibot: No, of course not.

Automatic scalling (zoom)

Post by Ceubex » Mon Dec 27, 2010 2:11 pm

Hello,

I'd like to replicate the same function as that used for the automatic scaling of the vertical axis when done right click on the graph.

I already have the following code:

Code: Select all

			ValueAxis axe2=xyplot.getRangeAxis();
			axe2.configure();
But the effect is not the same as when I travel freely in the graph and I run my funciton, the graph does not focus on the curve. The zoom is to the right size but the wrong place

Can you help me?
Thank you in advance

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: Automatic scalling (zoom)

Post by skunk » Mon Dec 27, 2010 2:47 pm

Code: Select all

axe2.setAutoRange(true);

Locked