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()

Creates a new XYDoubleAxis.

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

The grouping function.

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

The label function.

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

The sorting function.

Fields

GroupingFuncProperty

Identifies the GroupingFunc dependency property. This field is read-only.

public static readonly DependencyProperty GroupingFuncProperty

LabelFuncProperty

Identifies the LabelFunc dependency property. This field is read-only.

public static readonly DependencyProperty LabelFuncProperty

SortingFuncProperty

Identifies the SortingFunc dependency property. This field is read-only.

public static readonly DependencyProperty SortingFuncProperty

Inherited Members