Class CategoryAxis
Class implementation for CategoryAxis
Inheritance
System.Object
CategoryAxis
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class CategoryAxis : ChartAxisBase2D, ICloneable
Constructors
CategoryAxis()
Declaration
Fields
AggregateFunctionsProperty
Declaration
public static readonly DependencyProperty AggregateFunctionsProperty
Field Value
Type |
System.Windows.DependencyProperty |
IntervalProperty
The DependencyProperty for Interval property.
Declaration
public static readonly DependencyProperty IntervalProperty
Field Value
Type |
System.Windows.DependencyProperty |
IsIndexedProperty
The DependencyProperty for IsIndexed property.
Declaration
public static readonly DependencyProperty IsIndexedProperty
Field Value
Type |
System.Windows.DependencyProperty |
LabelPlacementProperty
Declaration
public static readonly DependencyProperty LabelPlacementProperty
Field Value
Type |
System.Windows.DependencyProperty |
Properties
AggregateFunctions
Gets or sets the aggregate for the grouped values.
Declaration
public AggregateFunctions AggregateFunctions { get; set; }
Property Value
Interval
Gets or sets a value that determines the interval between labels. Its nullable.
If this property is not set, interval will be calculated automatically.
Declaration
public double? Interval { get; set; }
Property Value
Type |
System.Nullable<System.Double> |
IsIndexed
Gets or sets a value indicating whether to group the Category axis label values and create the segment based on it.
Declaration
public bool IsIndexed { get; set; }
Property Value
Type |
Description |
System.Boolean |
True , to created the segment based on the index value. This is default value.;
False , to created the segment based on the axis label values.
|
LabelPlacement
Gets or sets the axis label placement with respect to ticklines.
Declaration
public LabelPlacement LabelPlacement { get; set; }
Property Value
Type |
Description |
LabelPlacement |
LabelPlacement.BetweenTicks , to place label between the ticks;
LabelPlacement.OnTicks , to place label with tick as center. This is default value.
|
Methods
ApplyRangePadding(DoubleRange, Double)
Apply padding based on interval
Declaration
protected override DoubleRange ApplyRangePadding(DoubleRange range, double interval)
Parameters
Type |
Name |
Description |
DoubleRange |
range |
|
System.Double |
interval |
|
Returns
Overrides
CalculateActualInterval(DoubleRange, Size)
Calculates actual interval
Declaration
protected override double CalculateActualInterval(DoubleRange range, Size availableSize)
Parameters
Type |
Name |
Description |
DoubleRange |
range |
|
System.Windows.Size |
availableSize |
|
Returns
Overrides
CloneAxis(DependencyObject)
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
obj |
|
Returns
Type |
System.Windows.DependencyObject |
Overrides
GenerateVisibleLabels()
Method implementation for generating visible labels for CategoryAxis.
Declaration
protected override void GenerateVisibleLabels()
Overrides
GetLabelContent(Double)
Method implementation for Get LabelContent for given position
Declaration
public override object GetLabelContent(double position)
Parameters
Type |
Name |
Description |
System.Double |
position |
|
Returns
Overrides
OnIntervalChanged(DependencyPropertyChangedEventArgs)
Called when interval property changed
Declaration
protected virtual void OnIntervalChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.DependencyPropertyChangedEventArgs |
e |
|
Implements