Class RangeAxisBase
The RangeAxisBase is the base class for all types of range axis.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public abstract class RangeAxisBase : ChartAxis, IThemeElement
Constructors
RangeAxisBase()
Initializes a new instance of the RangeAxisBase.
Declaration
public RangeAxisBase()
Fields
EdgeLabelsVisibilityModeProperty
Identifies the EdgeLabelsVisibilityMode bindable property.
Declaration
public static readonly BindableProperty EdgeLabelsVisibilityModeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
MinorGridLineStyleProperty
Identifies the MinorGridLineStyle bindable property.
Declaration
public static readonly BindableProperty MinorGridLineStyleProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
MinorTicksPerIntervalProperty
Identifies the MinorTicksPerInterval bindable property.
Declaration
public static readonly BindableProperty MinorTicksPerIntervalProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
MinorTickStyleProperty
Identifies the MinorTickStyle bindable property.
Declaration
public static readonly BindableProperty MinorTickStyleProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
ShowMinorGridLinesProperty
Identifies the ShowMinorGridLines bindable property.
Declaration
public static readonly BindableProperty ShowMinorGridLinesProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
EdgeLabelsVisibilityMode
Gets or sets the edge labels visibility mode for hiding the edge labels on zooming.
Declaration
public EdgeLabelsVisibilityMode EdgeLabelsVisibilityMode { get; set; }
Property Value
Type | Description |
---|---|
EdgeLabelsVisibilityMode | It accepts the EdgeLabelsVisibilityMode values and its default value is Default. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:NumericalAxis EdgeLabelsVisibilityMode ="Visible" />
</chart:SfCartesianChart.XAxes>
</chart:SfCartesianChart>
MinorGridLineStyle
Gets or sets the ChartLineStyle to customize the appearance of the minor grid lines.
Declaration
public ChartLineStyle MinorGridLineStyle { get; set; }
Property Value
Type | Description |
---|---|
ChartLineStyle | It accepts the ChartLineStyle value. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.Resources>
<DoubleCollection x:Key="dashArray">
<x:Double>3</x:Double>
<x:Double>3</x:Double>
</DoubleCollection>
</chart:SfCartesianChart.Resources>
<chart:SfCartesianChart.XAxes>
<chart:NumericalAxis ShowMinorGridLines="True">
<chart:NumericalAxis.MajorGridLineStyle>
<chart:ChartLineStyle StrokeDashArray="{StaticResource dashArray}" Stroke="Black" StrokeWidth="0.8"/>
</chart:NumericalAxis.MajorGridLineStyle>
</chart:NumericalAxis>
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.YAxes>
</chart:SfCartesianChart>
MinorTicksPerInterval
Gets or sets the value that defines the number of minor tick/grid lines to be drawn between the adjacent major tick/grid lines.
Declaration
public int MinorTicksPerInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | It accepts the |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:NumericalAxis MinorTicksPerInterval="3" />
</chart:SfCartesianChart.XAxes>
</chart:SfCartesianChart>
MinorTickStyle
Gets or sets the ChartAxisTickStyle to customize the appearance of the minor tick lines.
Declaration
public ChartAxisTickStyle MinorTickStyle { get; set; }
Property Value
Type | Description |
---|---|
ChartAxisTickStyle | It accepts the ChartAxisTickStyle value. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:NumericalAxis MinorTicksPerInterval="4">
<chart:NumericalAxis.MinorTickStyle>
<chart:ChartAxisTickStyle Stroke="Red" StrokeWidth="1"/>
</chart:NumericalAxis.MinorTickStyle>
</chart:NumericalAxis>
</chart:SfCartesianChart.XAxes>
<chart:SfCartesianChart.YAxes>
<chart:NumericalAxis/>
</chart:SfCartesianChart.YAxes>
</chart:SfCartesianChart>
ShowMinorGridLines
Gets or sets a value indicating whether the axis minor grid lines can be displayed or not.
Declaration
public bool ShowMinorGridLines { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | It accepts the bool value and its default value is |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:NumericalAxis ShowMinorGridLines = "False"
MinorTicksPerInterval="2" />
</chart:SfCartesianChart.XAxes>
</chart:SfCartesianChart>
Methods
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()