# Modifying Chart Labels

## Content



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](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.Chart3DLabel.html) 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](/componentone/api/win/online-chart3d/dotnet-framework-api/C1.Win.C1Chart3D.4.8/C1.Win.C1Chart3D.LabelView3DEnum.html).
*   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:

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.XY
  .IsConnected = 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
C1.Win.Chart3D.Chart3DLabel lab = C1Chart3D1.ChartLabels[1];
lab.Text = "Here is my chart label";
lab.View3D = LabelView3DEnum.XY;
lab.IsConnect = True;
```

DOC-DETAILS-TAG-CLOSE

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

1.  In the Properties window, expand the **ChartLabels** node.<br />![](https://cdn.mescius.io/document-site-files/images/46396fd1-914e-43da-9cb0-e66dcc0ae61b/imagesext/image10_14.png)
2.  Modify the properties as desired. For more information, see [3D Labels](/componentone/docs/win/online-chart3d/3dlabels).

## See Also

[Modifying Contour Levels](/componentone/docs/win/online-chart3d/chart3dforwinformsta/modifyingcontourleve)