Page 1 of 1

ShowInLegend not working

Posted: Mon Oct 13, 2008 4:50 pm
by 9238362
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?

Posted: Mon Oct 13, 2008 4:58 pm
by 9238362
Nevermind. I was modifying code for the wrong chart.