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
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
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
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
- XYAxisBase.AreLabelsVisibleProperty
- XYAxisBase.BarGroupSpacingProperty
- XYAxisBase.BarSpacingProperty
- XYAxisBase.AreMajorTicksVisibleProperty
- XYAxisBase.AreMinorTicksVisibleProperty
- XYAxisBase.LabelAngleProperty
- XYAxisBase.LabelFormatProperty
- XYAxisBase.LabelStyleProperty
- XYAxisBase.PositionProperty
- XYAxisBase.TickMajorStyleProperty
- XYAxisBase.TickMinorStyleProperty
- XYAxisBase.TitleProperty
- XYAxisBase.TitleStyleProperty
- XYAxisBase.UseDisplayOptimizationsProperty
- XYAxisBase.OnPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
- XYAxisBase.OnApplyTemplate()
- XYAxisBase.AreLabelsVisible
- XYAxisBase.AxisType
- XYAxisBase.BarGroupSpacing
- XYAxisBase.BarSpacing
- XYAxisBase.AreMajorTicksVisible
- XYAxisBase.AreMinorTicksVisible
- XYAxisBase.LabelAngle
- XYAxisBase.LabelFormat
- XYAxisBase.LabelStyle
- XYAxisBase.Position
- XYAxisBase.Ranges
- XYAxisBase.TickMajorStyle
- XYAxisBase.TickMinorStyle
- XYAxisBase.Title
- XYAxisBase.TitleStyle
- XYAxisBase.UseDisplayOptimizations
- XYAxisBase.Refreshed