Page 1 of 1

How to make Semi Circular Gauge

Posted: Thu May 31, 2012 9:28 pm
by 15359204
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

Posted: Fri Jun 01, 2012 10:54 am
by yeray
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:

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);