In This Article

XYGroupedAxis Class

XYGroupedAxis is an axis type used for displaying non-value data, such as strings and complex types. It can group, label, and sort data based on custom criteria.

public class XYGroupedAxis : XYAxisBase
Inheritance:
object Visual UIElement FrameworkElement Control XYAxisBase object

Constructors

XYGroupedAxis()

Initializes an instance of the class.

public XYGroupedAxis()

Properties

GroupingFunc

The function used to group items for a XYGroupedAxis. The function takes two data items and returns a bool indicating whether or not the items are grouped.

public Func<object, object, bool>? GroupingFunc { get; set; }

Property Value

Func<object, object, bool>

LabelFunc

The function used to label groups of items. The function takes a single data item from a group and returns a string used to label the group.

public Func<object, string>? LabelFunc { get; set; }

Property Value

Func<object, string>

SortingFunc

The function used to sort groups of items. The function takes two data items from separate groups and returns an int comparing the two values. XYGroupedAxis should have SortFunc -- takes two groups and returns an int, like a comparable ("group" is first item in group) If the function returns a negative value, then the first instance is sorted before the second. If the function returns zero, then the instances are considered equal and sorted next to each other. If the function returns a positive value, then the first instance is sorted after the second.

public Func<object?, object?, int>? SortingFunc { get; set; }

Property Value

Func<object, object, int>

Fields

GroupingFuncProperty

Defines the GroupingFunc property.

public static readonly DependencyProperty GroupingFuncProperty

LabelFuncProperty

Defines the LabelFunc property.

public static readonly DependencyProperty LabelFuncProperty

SortingFuncProperty

Defines the SortingFunc property.

public static readonly DependencyProperty SortingFuncProperty

Inherited Members

Extension Methods