NULL Datapoints feature allows you to omit certain data points from being plotted on the chart by setting its value to NULL (1.79E+308). All data points with a value of 1.79E+308 will not be displayed on the chart.
You can use the built in SetNULLData method, along with Row and Column properties, to set a datapoint to NULL (see example 1). You can also manually set a datapoint to NULL by setting Row, Column, and Data properties (see example 2). Examples 1 and 2 are functionally identical.
Example 1
XYChartCtrl.NumProfiles =
5 'Set the number of profiles to plot
to 5
XYChartCtrl.NumSamples =
10 'Set the number of samples allowed
to 10
XYChartCtrl.Column = 6 'Set
the column to 6, i.e. Y-data for Profile 3
XYChartCtrl.Row =
3 'Set
the row to 3, i.e. 3rd sample Y-data for Profile 3
XYChartCtrl.SetNULLData
'Set the data
at (Row, Column) cell location to NULL
XYChartCtrl.Refresh 'Refresh required to update chart with changes made
Example 2
XYChartCtrl.NumProfiles =
5 'Set the number of profiles to plot
to 5
XYChartCtrl.NumSamples =
10 'Set the number of samples allowed
to 10
XYChartCtrl.Column = 6 'Set
the column to 6, i.e. Y-data for Profile 3
XYChartCtrl.Row =
3 'Set
the row to 3, i.e. 3rd sample Y-data for Profile 3
XYChartCtrl.Data = 1.79E+308 'Manually
set the data
at (Row, Column) cell location to NULL
XYChartCtrl.Refresh 'Refresh required to update chart with changes made