How to make Semi Circular Gauge
How to make Semi Circular Gauge
In the gallery there is a very nice looking gauge titled a semi-circular gauge. I am curious how to make something similar. I've looked through the examples I could find but there only seems to be one example for a circular gauge. Is there a place to find the source code example for a semi circular one? Is this a circular gauge series with adjustments for the angle etc?
Re: How to make Semi Circular Gauge
Hi,
First of all note this example in the gallery was made with TeeChart .NET. Although, we always try to maintain all the versions as similar as possible, it seems the setDisplayTotalAngle and setDisplayRotationAngle (and the correspondent get*) methods, necessary to produce this semicircular gauges, aren't implemented in the Java version yet.
We're working on it and hopefully they will be included in the next maintenance release. So the following code should work in the next version:
First of all note this example in the gallery was made with TeeChart .NET. Although, we always try to maintain all the versions as similar as possible, it seems the setDisplayTotalAngle and setDisplayRotationAngle (and the correspondent get*) methods, necessary to produce this semicircular gauges, aren't implemented in the Java version yet.
We're working on it and hopefully they will be included in the next maintenance release. So the following code should work in the next version:
Code: Select all
com.steema.teechart.themes.ThemesList.applyTheme(tChart1.getChart(), 1);
CircularGauge circular1 = new CircularGauge(tChart1.getChart());
circular1.fillSampleValues();
circular1.setDisplayTotalAngle(170);
circular1.setTotalAngle(150);
circular1.setDisplayRotationAngle(5);
circular1.setHandOffset(0);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |