Changing the minimum and maximum values of a Circular Gauge.

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Phil
Newbie
Newbie
Posts: 1
Joined: Mon Jan 09, 2012 12:00 am

Changing the minimum and maximum values of a Circular Gauge.

Post by Phil » Wed Feb 08, 2012 2:11 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Thu Feb 09, 2012 2:36 pm

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);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply