Page 1 of 1

Changing the minimum and maximum values of a Circular Gauge.

Posted: Wed Feb 08, 2012 2:11 pm
by 17061251
Hi,

I'm trying to change the minimum and maximum values for at Circular Gauge component, and It seems not to work.
I have tried the following :

Code: Select all

myGauge.getAxes().getLeft().setMaximum((double)10000);
myGauge.getAxes().getLeft().setMinimum((double)0);   
to no success.

Am I missing something crucial?

Cheers for any help.
Phil

Re: Changing the minimum and maximum values of a Circular Gauge.

Posted: Thu Feb 09, 2012 2:36 pm
by yeray
Hi Phil,

Note the CircularGauge is a little bit particular. Try as follows:

Code: Select all

		CircularGauge circ1 = new CircularGauge(tChart1.getChart());
		circ1.setMaximum(10000);
		circ1.setMinimum(0);
		circ1.getAxis().setIncrement(500);