ShowInLegend not working
Posted: 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?
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?