ComponentOne 3D Chart for WinForms
In This Topic
    3D Labels
    In This Topic

    A Chart3DLabel is an independent label that can be displayed inside or outside the PlotCube. ChartLabels are used to highlight an important data point, but can also be used generally to provide information on data or on the chart.

    There is no limit to the number of ChartLabels a chart can contain. Each Chart3DLabel has a foreground and background color, border, fonts, and attachment attributes that can be customized.

    The Chart3DLabel object provides a number of properties that help define and position the chart label. The most important of these properties are the following:

    The following code sets the above properties:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    With C1Chart3D1.ChartLabels(1)
      .Text = "Here is my chart label"
      .View3D = LabelView3DEnum.YZ
      .Connected = True
    End With
    

    To write code in C#

    C#
    Copy Code
    Chart3DLabel lab = C1Chart3D1.ChartLabels[1];
    lab.Text = "Here is my chart label";
    lab.View3D = LabelView3DEnum.YZ;
    lab.Connected = true;
    
    See Also