Erasing a plotted line
-
- Newbie
- Posts: 35
- Joined: Wed Dec 12, 2007 12:00 am
Erasing a plotted line
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.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi marathoner,
Yes, you can remove one single series using RemoveSeries method as shown here:
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 |
Instructions - How to post in this forum |