Skip to main content

Series.LabelsVisibility Property

Specifies whether to show series labels.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public bool LabelsVisibility { get; set; }

Property Value

Type Description
Boolean

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

Remarks

The following table shows charts with different LabelsVisibility property values:

LabelsVisibility = false LabelsVisibility = true
LabelsVisibilityDisabled LabelsVisibilityEnabled

The following example enables series labels and formats their text:

Series labels are shown and formatted

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

See Also