ShowInLegend not working

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Banjovi
Newbie
Newbie
Posts: 11
Joined: Thu Sep 22, 2005 4:00 am

ShowInLegend not working

Post by Banjovi » Mon Oct 13, 2008 4:50 pm

Using TChartPro v7.7 under BCB6

I have several TLineSeries on a chart and later I add a corresponding TPointSeries for each line series. I want the point series to not show up in the legend, but I can't seem to get that behavior. Here's the code for the point series:

// Create a series
TPointSeries *ser;
ser = (TPointSeries *) TChart1->AddSeries(__classid(TPointSeries));
ser->Title = TChart1->Series->Title;
ser->Title += " - Unreliable";
ser->ShowInLegend = false;
ser->Marks->Visible = false;
ser->Marks->Style = smsValue;

After I've done this, the point series shows up in the legend. What am I doing wrong?

Banjovi
Newbie
Newbie
Posts: 11
Joined: Thu Sep 22, 2005 4:00 am

Post by Banjovi » Mon Oct 13, 2008 4:58 pm

Nevermind. I was modifying code for the wrong chart.

Post Reply