TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
-
Phil
- Newbie
- Posts: 1
- Joined: Mon Jan 09, 2012 12:00 am
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
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
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);