wpf-devexpress-dot-xpf-dot-charts-dot-series-23b8f379.md
Specifies whether to show series labels.
Namespace : DevExpress.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public bool LabelsVisibility { get; set; }
Public Property LabelsVisibility As Boolean
| Type | Description |
|---|---|
| Boolean |
true to show series labels; false to hide them (default).
|
The following table shows charts with different LabelsVisibility property values:
| LabelsVisibility = false | LabelsVisibility = true |
|---|---|
The following example enables series labels and formats their text:
<dxc:PointSeries2D ...
LabelsVisibility="True">
<dxc:PointSeries2D.Label>
<dxc:SeriesLabel TextPattern="${Sales:f2}K"/>
</dxc:PointSeries2D.Label>
</dxc:PointSeries2D>
The following code snippets (auto-collected from DevExpress Examples) contain references to the LabelsVisibility property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-charts-custom-draw-chart-series-points/CS/CustomDrawChart/MainWindow.xaml#L34
</dxc:XYDiagram2D.AxisY>
<dxc:BarSideBySideSeries2D LabelsVisibility="True">
<dxc:SeriesPoint Argument="A" Value="0.3" />
wpf-data-grid-display-chart-control-in-grid-details/CS/WpfApplication19/MainWindow.xaml#L23
<dxc:SimpleDiagram2D.Series>
<dxc:PieSeries2D ArgumentDataMember="Supplier" ValueDataMember="Quantity" LabelsVisibility="True">
<dxc:PieSeries2D.PointOptions>
wpf-data-grid-create-master-detail-grid-in-code/CS/MasterDetailInCode/MainWindow.xaml#L20
<dxc:SimpleDiagram2D.Series>
<dxc:PieSeries2D ArgumentDataMember="Supplier" ValueDataMember="Quantity" LabelsVisibility="True">
<dxc:PieSeries2D.PointOptions>
See Also