Page 1 of 1

CircularGauge axis. Can set increment only once.

Posted: Mon Oct 03, 2016 7:21 am
by 16677910
CircularGauge axis:

gauge.GetAxis().SetIncrement(500.0);
gauge.GetAxis().SetIncrement(1000.0);

Using editor increment for axis is 500.0 and labels are drawn with increment 500.0.

TeeChart 2016.0.0.2 and C++.

Huh. This series type is really buggy!

Re: CircularGauge axis. Can set increment only once.

Posted: Mon Oct 03, 2016 7:51 am
by yeray
Hello,

I've tested this code in VS2015 with TeeChart ActiveX 2016.0.0.2 and it seems to work as expected:

Code: Select all

BOOL CDraggingDlg::OnInitDialog()
{
        //...
	m_ctrlChart.AddSeries(scCircularGauge);
	
	m_ctrlChart.Series(0).GetAsCircularGauge().SetValue(2000);
	m_ctrlChart.Series(0).GetAsCircularGauge().SetMaximum(5000);
	m_ctrlChart.Series(0).GetAsCircularGauge().GetAxis().SetIncrement(500);
}

void CDraggingDlg::OnButton1Click() 
{
	m_ctrlChart.Series(0).GetAsCircularGauge().GetAxis().SetIncrement(1000);
}