# 3D Labels

## Content



A [Chart3DLabel](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DLabel.html) 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 **Text** property specifies the text to appear in the chart label, and is of type Label.
*   The [View3D](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DLabel.View3D.html) property specifies the position of the chart label in 3D space. The position is specified as [LabelView3DEnum](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.LabelView3DEnum.html).
*   The [Connected](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DLabel.Connected.html) 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.

The following code sets the above properties:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
With C1Chart3D1.ChartLabels(1)
  .Text = "Here is my chart label"
  .View3D = LabelView3DEnum.YZ
  .Connected = True
End With
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
Chart3DLabel lab = C1Chart3D1.ChartLabels[1];
lab.Text = "Here is my chart label";
lab.View3D = LabelView3DEnum.YZ;
lab.Connected = true;
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Attaching and Positioning 3D Chart Labels](/componentone/docs/win/online-chart3d/3dlabels/attachingandposition)

[Determining which 3D Plane to Face the Label](/componentone/docs/win/online-chart3d/3dlabels/determiningwhich3dpl)

[3D Chart Labels Programming Considerations](/componentone/docs/win/online-chart3d/3dlabels/3dchartlabelsprogram)

[Customizing 3D Chart Labels](/componentone/docs/win/online-chart3d/3dlabels/customizing3dchartla)