Class CategoryAxis
Class implementation for CategoryAxis
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class CategoryAxis : ChartAxisBase2D, ICloneable
Constructors
CategoryAxis()
Declaration
public CategoryAxis()
Fields
AggregateFunctionsProperty
The DependencyProperty for AggregateFunctions property.
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
The DependencyProperty for LabelPlacement property.
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
| Type |
|---|
| AggregateFunctions |
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 |
|
LabelPlacement
Gets or sets the axis label placement with respect to ticklines.
Declaration
public LabelPlacement LabelPlacement { get; set; }
Property Value
| Type | Description |
|---|---|
| LabelPlacement |
|
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
| Type |
|---|
| DoubleRange |
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
| Type |
|---|
| System.Double |
Overrides
CloneAxis(DependencyObject)
Creates a copy of the ChartAxis.
Declaration
protected override DependencyObject CloneAxis(DependencyObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | obj |
Returns
| Type | Description |
|---|---|
| System.Windows.DependencyObject | A cloned ChartAxis instance with properties copied from the current instance. |
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
| Type |
|---|
| System.Object |
Overrides
OnIntervalChanged(DependencyPropertyChangedEventArgs)
Called when interval property changed
Declaration
protected virtual void OnIntervalChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e |