Back to Devexpress

Series.LabelsVisibility Property

wpf-devexpress-dot-xpf-dot-charts-dot-series-23b8f379.md

latest3.6 KB
Original Source

Series.LabelsVisibility Property

Specifies whether to show series labels.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public bool LabelsVisibility { get; set; }
vb
Public Property LabelsVisibility As Boolean

Property Value

TypeDescription
Boolean

true to show series labels; false to hide them (default).

|

Remarks

The following table shows charts with different LabelsVisibility property values:

LabelsVisibility = falseLabelsVisibility = true

The following example enables series labels and formats their text:

xaml
<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

xml
</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

xml
<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

xml
<dxc:SimpleDiagram2D.Series>
    <dxc:PieSeries2D ArgumentDataMember="Supplier" ValueDataMember="Quantity" LabelsVisibility="True">
        <dxc:PieSeries2D.PointOptions>

See Also

Series Class

Series Members

DevExpress.Xpf.Charts Namespace