BCGControlBar Pro for MFC
virtual void CBCGPChartSeries::SetTreatNulls ( CBCGPChartSeries::TreatNulls  tn,
BOOL  bRecalcMinMax = TRUE 
)
virtual

Defines series behavior when it encounters empty data.

Call this method to specify how a series should handle empty data points. tn can be one of the following enumerated values:

  • TN_VALUE - empty point is treated as value (0).
  • TN_SKIP - empty point is skipped; in this case previous and next data points are connected
  • TN_NO_PAINT - an empty point is not painted; it means that a diagram segment corresponding to this point is not drawn

Empty points are supported by line, area, polar, radar, stock, column and bar charts.

Warning: currently built-in technical indicators do not support empty data in stock series.

Parameters
tnSpecifies how a series treats empty data.
bRecalcMinMaxTRUE - recalculate series minimum and maximum according to the new "treat nulls" option.