Erasing a plotted line

TeeChart for ActiveX, COM and ASP
Post Reply
marathoner
Newbie
Newbie
Posts: 35
Joined: Wed Dec 12, 2007 12:00 am

Erasing a plotted line

Post by marathoner » Tue Mar 11, 2008 9:51 pm

If I create several 2D line plots. Instead of clearing the entire chart, I want to erase only one 2D line. I am using Visual C++ 6.0.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Mar 12, 2008 9:32 am

Hi marathoner,

Yes, you can remove one single series using RemoveSeries method as shown here:

Code: Select all

	long series1;	
	series1 = m_Chart1.AddSeries(scHistogram);
	
	m_Chart1.Series(series1).SetColor(RGB(255,0,0));

	for	(int i=0; i<10; i++)
	{
		m_Chart1.Series(series1).AddXY(i,i,"",clTeeColor);
	}

	m_Chart1.RemoveSeries(series1);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply