ComponentOne 3D Chart for WinForms
Chart 3D for WinForms Task-Based Help / Modifying Chart Labels
In This Topic
    Modifying Chart Labels
    In This Topic

    The 3D Chart Labels are used to highlight an important data point, but can also be used generally to provide information on data or on the chart.

    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 Text property specifies the text to appear in the chart label, and is of type Label.
    • The View3D property specifies the position of the chart label in 3D space. The position is specified as LabelView3DEnum.
    • The Connected property is a Boolean that specifies whether a line is to be drawn from the chart label to its attached location. If True, the line is drawn.

    To programmatically modify the properties for the Chart Labels:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    With c1Chart3D1.ChartLabels(1)
      .Text = "Here is my chart label"
      .View3D = LabelView3DEnum.XY
      .IsConnected = True
    End With
    

    To write code in C#

    C#
    Copy Code
    C1.Win.Chart3D.Chart3DLabel lab = C1Chart3D1.ChartLabels[1];
    lab.Text = "Here is my chart label";
    lab.View3D = LabelView3DEnum.XY;
    lab.IsConnect = True;
    

    To modify the properties for Chart Labels through the Properties window:

    1. In the Properties window, expand the ChartLabels node.
    2. Modify the properties as desired. For more information, see 3D Labels.
    See Also