ComponentOne 3D Chart for WinForms
3D Data / Handling Missing Data
In This Topic
    Handling Missing Data
    In This Topic

    If one coordinate for a data point is set to a special value known as the hole value, the chart treats the data point as a missing value, and does not display it on the chart. This hole value is specified by the Hole property of the Chart3DDataSet object.

    For example, the following code treats the point in the third row and first column as a missing value:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Dim gridset As Chart3DDataSetGrid
    gridset = C1Chart3D1.ChartGroups(0).ChartData.SetGrid
    With gridset
      .Hole = 999.1
      .Item(0, 2) = 999.1
    End With                                        
    

    To write code in C#

    C#
    Copy Code
    Chart3DDataSetGrid gridset = C1Chart3D1.ChartGroups[0].ChartData.SetGrid;
    gridset.Hole = 999.1f;
    gridset[0,2] = 999.1f;
    
    See Also