Back to Devexpress

HeatmapAxis.CustomLabels Property

wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmapaxis-3659e743.md

latest2.4 KB
Original Source

HeatmapAxis.CustomLabels Property

Returns the collection of custom axis labels.

Namespace : DevExpress.Xpf.Charts.Heatmap

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public CustomAxisLabelCollection CustomLabels { get; }
vb
Public ReadOnly Property CustomLabels As CustomAxisLabelCollection

Property Value

TypeDescription
CustomAxisLabelCollection

A collection of custom axis labels.

|

Remarks

You can display custom labels with default labels or in place of default labels. The adapter creates default labels based on cell arguments.

To display custom labels on an axis, add CustomAxisLabel objects to the CustomLabels collection. For each custom label, specify the CustomAxisLabel.Value and CustomAxisLabel.Content properties.

Set the HeatmapAxis.LabelVisibilityMode property to AutoGeneratedAndCustom to show custom labels with default labels. Otherwise, only custom labels will be visible.

The following example displays a custom label on an x-axis:

xaml
<dxh:HeatmapControl.AxisX>
    <dxh:HeatmapAxis LabelVisibilityMode="AutoGeneratedAndCustom">
        <dxh:HeatmapAxis.CustomLabels>
            <dxc:CustomAxisLabel Value="West" 
                                 Content="Division: West"/>
        </dxh:HeatmapAxis.CustomLabels>
    </dxh:HeatmapAxis>
</dxh:HeatmapControl.AxisX>

See Also

HeatmapAxis Class

HeatmapAxis Members

DevExpress.Xpf.Charts.Heatmap Namespace