CircularGauge axis. Can set increment only once.

TeeChart for ActiveX, COM and ASP
Post Reply
Tero
Newbie
Newbie
Posts: 7
Joined: Wed Mar 30, 2016 12:00 am
Contact:

CircularGauge axis. Can set increment only once.

Post by Tero » Mon Oct 03, 2016 7:21 am

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!

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CircularGauge axis. Can set increment only once.

Post by Yeray » Mon Oct 03, 2016 7:51 am

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);
}
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply