Page 1 of 1

Android CircularGauge Logarithmic axis

Posted: Thu May 15, 2014 10:37 am
by 17069151
Hi,

I’m using Teechart Java Android source code v3.2013.1219.
I’m using the following code to set a logarithmic axis on the circular gauge but it still gives me a linear scale.

Code: Select all

circularGauge = new CircularGauge(chart.getChart());

circularGauge.setMinimum(0);
circularGauge.setMaximum(512);

circularGauge.getVertAxis().setLogarithmic(true);
circularGauge.getVertAxis().setLogarithmicBase(2.0);
circularGauge.getVertAxis().setIncrement(1);
Do I need to use something else to enable the logarithmic axis or the CircularGauge does not support such functionality?

Thank you in advance.

Re: Android CircularGauge Logarithmic axis

Posted: Thu May 15, 2014 2:18 pm
by yeray
Hello,

I've added it to the tracker to be implemented in future releases:
http://bugs.teechart.net/show_bug.cgi?id=771
Feel free to add your mail account to the CC list to be automatically notified when an update arrives.

Re: Android CircularGauge Logarithmic axis

Posted: Thu May 15, 2014 2:49 pm
by 17069151
Thanks for the feedback.
Btw, do bars and line charts support logarithmic axis?

Re: Android CircularGauge Logarithmic axis

Posted: Fri May 16, 2014 7:30 am
by yeray
Hello,

Yes, take a look at the following code:

Code: Select all

        Bar bar1 = new Bar(tChart1.getChart());
        bar1.fillSampleValues();
        try {
            tChart1.getAxes().getLeft().setLogarithmic(true);
        } catch (ChartException ex) {
            Logger.getLogger(ChartJFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
This is how it looks the chart after running the above:
2014-05-16_0930.png
2014-05-16_0930.png (11.98 KiB) Viewed 14161 times

Re: Android CircularGauge Logarithmic axis

Posted: Mon May 19, 2014 5:59 am
by 17069151
Great, thanks for the example.