Hi Robert,
It it possible to completely hide a datapoint in a series when the Y value is zero by setting the IsEmpty property of that point to true. And this is the only property that could help in preventing a datapoint being rendered in chart.
Sample Code: if (this.chartControl1.Series[k].Points[i].YValues[0] == 0)
{
this.chartControl1.Series[k].Points[i].IsEmpty = true;
}
I have attached a sample that illustrates this in this link below.
http://websamples.syncfusion.com/samples/Chart.Windows/F33921/main.htmHowever you can improve the performance by setting the below properties.
(i) ChartSeries.EnableStyles: Point Symbols and Point Text will not be visible if set to false.
(ii) ChartSeries.Style.DisplayShadow: This is set to true by default. Turning it off means, your lines will not have shadows (and hence will be rendered faster).
(iii) ChartControl.ImprovePerformance = true;- Improve the performance of the chart control.
(iv) ChartControl.Indexed : Setting Indexed to false speeds up the Chart. This is not a choice for making the Chart faster. If you don''t need a Indexed/Positional Chart, you must set this property to false.
(v) ChartControl.CalcRegions: This property controls Tooltips and AutoHighliting. If this value is set to false, these features will not work.
(vi) chartControl1.AllowGradientPalette: Turned off gradients.
You can also refer to the following link which could provide some tips to improvove performance in chart Application.
http://www2.syncfusion.com/ug_63/chart/Performance1.htmlKindly let us know if you have any other queries. Thanking you.
Regards,
Manohari.R