AxisBase.QualitativeScaleComparer Property
Gets or sets the comparer used to compare deferred-axis qualitative scale values.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
IComparer | An object of the class implementing the IComparer interface. |
Example
To implement a custom qualitative scale values sort order, assign an object of a class implementing the IComparer interface to the AxisBase.QualitativeScaleComparer
property.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-sort-qualitative-values-in-a-custom-order-t318834.
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
<dxc:AxisX2D.QualitativeScaleComparer>
<local:NumberComparer/>
</dxc:AxisX2D.QualitativeScaleComparer>
</dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QualitativeScaleComparer 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.