Hi,
I've uploaded an example screen capture "chartlistbox.jpg" to illustrate my question.
I'm using the chartlistbox as a legend since the amount of points I'm plotting on the chart cannot be determied. The built-in legend only displays those points that can fit on the screen.
The shapes, lines and labels on the chart is static and must not change. However, because they are also "series", they are displayed in the chartlistbox, which I don't want.
The question is thus: How do I remove my static series from the chartlistbox, but still have them plotted?
Regards,
Casper JH Erasmus
Using ChartListBox as Legend
-
- Newbie
- Posts: 17
- Joined: Wed Oct 13, 2004 4:00 am
- Location: South Africa
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Casper,
You can achieve what you request doing something like this:
You can achieve what you request doing something like this:
Code: Select all
With ChartListBox1 do
begin
Series2.ShowInEditor:=false;
Series4.ShowInEditor:=false;
ClearItems;
FillSeries(Series1);
FillSeries(Series3);
end;
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 |
-
- Newbie
- Posts: 17
- Joined: Wed Oct 13, 2004 4:00 am
- Location: South Africa
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Casper,
Sorry, I confused myself and posted a Delphi example. In TeeChart for .NET you can use this:
Sorry, I confused myself and posted a Delphi example. In TeeChart for .NET you can use this:
Code: Select all
this.chartListBox1.Items.Remove(line2);
this.chartListBox1.Items.Remove(line3);
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 |