For some reason SetChartObjEnable doesn't work with my line plot object although SetChartObjEnable seems to work with all other objects (eg axes, labels).
I have to use chartView.AddChartObject(thePlot) and chartView.DeleteChartObject(thePlot) instead.
We could not reproduce this problem using the current version of the software, though we have never known it to be a problem in any version. We tested it using thePlot2 of the UserChartEample1 example program.
ChartAttribute attrib2 = new ChartAttribute (Color.Green, 3,DashStyle.Solid); SimpleLinePlot thePlot2 = new SimpleLinePlot(pTransform1, Dataset1, attrib2); chartVu.AddChartObject(thePlot2); thePlot2.ChartObjEnable = ChartObj.OBJECT_DISABLE;