menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RangeAxisBase - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RangeAxisBase

    The RangeAxisBase is the base class for all types of range axis.

    Inheritance
    System.Object
    ChartAxis
    RangeAxisBase
    DateTimeAxis
    LogarithmicAxis
    NumericalAxis
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ChartAxis.ActualRangeChanged
    ChartAxis.ApplyRangePadding(DoubleRange, Double)
    ChartAxis.AutoScrollingDelta
    ChartAxis.AutoScrollingDeltaProperty
    ChartAxis.AutoScrollingMode
    ChartAxis.AutoScrollingModeProperty
    ChartAxis.AxisLineOffset
    ChartAxis.AxisLineOffsetProperty
    ChartAxis.AxisLineStyle
    ChartAxis.AxisLineStyleProperty
    ChartAxis.CalculateActualInterval(DoubleRange, Size)
    ChartAxis.CalculateActualRange()
    ChartAxis.CalculateNiceInterval(DoubleRange, Size)
    ChartAxis.CalculateVisibleInterval(DoubleRange, Size)
    ChartAxis.CalculateVisibleRange(DoubleRange, Size)
    ChartAxis.CrosshairLabelTemplate
    ChartAxis.CrosshairLabelTemplateProperty
    ChartAxis.EdgeLabelsDrawingMode
    ChartAxis.EdgeLabelsDrawingModeProperty
    ChartAxis.EnableAutoIntervalOnZooming
    ChartAxis.EnableAutoIntervalOnZoomingProperty
    ChartAxis.GetActualDesiredIntervalsCount(Size)
    ChartAxis.GetRenderedRect()
    ChartAxis.Header
    ChartAxis.HeaderProperty
    ChartAxis.HeaderStyle
    ChartAxis.HeaderStyleProperty
    ChartAxis.HeaderTemplate
    ChartAxis.HeaderTemplateProperty
    ChartAxis.IsInversed
    ChartAxis.IsInversedProperty
    ChartAxis.LabelCreated
    ChartAxis.LabelExtent
    ChartAxis.LabelExtentProperty
    ChartAxis.LabelRotation
    ChartAxis.LabelRotationProperty
    ChartAxis.LabelsIntersectAction
    ChartAxis.LabelsIntersectActionProperty
    ChartAxis.LabelStyle
    ChartAxis.LabelStyleProperty
    ChartAxis.LabelTemplate
    ChartAxis.LabelTemplateProperty
    ChartAxis.MajorGridLineStyle
    ChartAxis.MajorGridLineStyleProperty
    ChartAxis.MajorTickStyle
    ChartAxis.MajorTickStyleProperty
    ChartAxis.MeasureOverride(Size)
    ChartAxis.OnApplyTemplate()
    ChartAxis.OnCreateLabels()
    ChartAxis.OnLabelCreated(ChartAxisLabel)
    ChartAxis.OpposedPosition
    ChartAxis.OpposedPositionProperty
    ChartAxis.PlotOffsetEnd
    ChartAxis.PlotOffsetEndProperty
    ChartAxis.PlotOffsetStart
    ChartAxis.PlotOffsetStartProperty
    ChartAxis.PointToValue(Double, Double)
    ChartAxis.PropertyChanged
    ChartAxis.ShowMajorGridLines
    ChartAxis.ShowMajorGridLinesProperty
    ChartAxis.ShowTrackballLabel
    ChartAxis.ShowTrackballLabelProperty
    ChartAxis.TickLineSize
    ChartAxis.TickLineSizeProperty
    ChartAxis.TrackballLabelTemplate
    ChartAxis.TrackballLabelTemplateProperty
    ChartAxis.ValueToPoint(Double)
    ChartAxis.VisibleMaximum
    ChartAxis.VisibleMinimum
    ChartAxis.ZoomFactor
    ChartAxis.ZoomFactorProperty
    ChartAxis.ZoomPosition
    ChartAxis.ZoomPositionProperty
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.Chart.WinUI.dll
    Syntax
    public abstract class RangeAxisBase : ChartAxis, INotifyPropertyChanged

    Constructors

    RangeAxisBase()

    Initializes a new instance of the RangeAxisBase class.

    Declaration
    public RangeAxisBase()

    Fields

    EdgeLabelsVisibilityModeProperty

    The DependencyProperty for EdgeLabelsVisibilityMode property.

    Declaration
    public static readonly DependencyProperty EdgeLabelsVisibilityModeProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    MinorGridLineStyleProperty

    The DependencyProperty for MinorGridLineStyle property.

    Declaration
    public static readonly DependencyProperty MinorGridLineStyleProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    MinorTickLineSizeProperty

    The DependencyProperty for MinorTickLineSize property.

    Declaration
    public static readonly DependencyProperty MinorTickLineSizeProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    MinorTicksPerIntervalProperty

    The DependencyProperty for MinorTicksPerInterval property.

    Declaration
    public static readonly DependencyProperty MinorTicksPerIntervalProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    MinorTickStyleProperty

    The DependencyProperty for MinorTickStyle property.

    Declaration
    public static readonly DependencyProperty MinorTickStyleProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    ShowMinorGridLinesProperty

    The DependencyProperty for ShowMinorGridLines property.

    Declaration
    public static readonly DependencyProperty ShowMinorGridLinesProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    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
    • MainPage.xaml
    • MainPage.xaml.cs
    <chart:SfCartesianChart>
    
        <chart:SfCartesianChart.XAxes>
            <chart:NumericalAxis EdgeLabelsVisibilityMode ="Visible" />
        </chart:SfCartesianChart.XAxes>
    
    </chart:SfCartesianChart>
    SfCartesianChart chart = new SfCartesianChart();
    
    NumericalAxis xaxis = new NumericalAxis()
    {
       EdgeLabelsVisibilityMode = EdgeLabelsVisibilityMode.Visible,
    };
    chart.XAxes.Add(xaxis);

    MinorGridLineStyle

    Gets or sets the style to customize the appearance of the minor grid lines.

    Declaration
    public Style MinorGridLineStyle { get; set; }
    Property Value
    Type Description
    Microsoft.UI.Xaml.Style

    It accepts the Microsoft.UI.Xaml.Style value.

    Examples
    • MainWindow.xaml
    • MainWindow.cs
        <chart:SfCartesianChart>
    
            <chart:SfCartesianChart.XAxes>
                <chart:NumericalAxis MinorTicksPerInterval="2">
                    <chart:NumericalAxis.MinorGridLineStyle>
                        <Style TargetType = "Line" >
                            <Setter Property="StrokeThickness" Value="2"/>
                            <Setter Property = "Stroke" Value="Red" />
                        </Style>
                    </chart:NumericalAxis.MinorGridLineStyle>
                </chart:NumericalAxis>
            </chart:SfCartesianChart.XAxes>
    
            <chart:SfCartesianChart.YAxes>
                <chart:NumericalAxis/>
            </chart:SfCartesianChart.YAxes>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
    
        NumericalAxis xAxis = new NumericalAxis();
        xAxis.MinorTicksPerInterval = 2;
        Style minorGridLineStyle = new Style() { TargetType = typeof(Line), };
        minorGridLineStyle.Setters.Add(new Setter(Path.StrokeThicknessProperty, 2));
        minorGridLineStyle.Setters.Add(new Setter(Path.StrokeProperty, new SolidColorBrush(Colors.Red)));
        xAxis.MinorGridLineStyle = minorGridLineStyle;
        chart.XAxes.Add(xAxis);
    
        NumericalAxis yAxis = new NumericalAxis();
        chart.YAxes.Add(yAxis);

    MinorTickLineSize

    Gets or sets a value to modify the minor tick line size.

    Declaration
    public double MinorTickLineSize { get; set; }
    Property Value
    Type Description
    System.Double

    It accepts double values and its default value is 5.

    Examples
    • MainPage.xaml
    • MainPage.xaml.cs
    <chart:SfCartesianChart>
    
            <chart:SfCartesianChart.XAxes>
                <chart:NumericalAxis MinorTickLineSize="10"  />
            </chart:SfCartesianChart.XAxes>
    
    </chart:SfCartesianChart>
    SfCartesianChart chart = new SfCartesianChart();
    
    NumericalAxis xaxis = new NumericalAxis();
    xaxis.MinorTickLineSize= 10;
    chart.XAxes.Add(xaxis);

    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 integer values and its default value is 0.

    Examples
    • MainPage.xaml
    • MainPage.xaml.cs
    <chart:SfCartesianChart>
    
            <chart:SfCartesianChart.XAxes>
                <chart:NumericalAxis MinorTicksPerInterval="3"  />
            </chart:SfCartesianChart.XAxes>
    
    </chart:SfCartesianChart>
    SfCartesianChart chart = new SfCartesianChart();
    
    NumericalAxis xaxis = new NumericalAxis();
    xaxis.MinorTicksPerInterval= 3;
    chart.XAxes.Add(xaxis);

    MinorTickStyle

    Gets or sets the style to customize the appearance of the minor tick lines.

    Declaration
    public Style MinorTickStyle { get; set; }
    Property Value
    Type Description
    Microsoft.UI.Xaml.Style

    It accepts the Microsoft.UI.Xaml.Style value.

    Examples
    • MainWindow.xaml
    • MainWindow.cs
        <chart:SfCartesianChart>
    
            <chart:SfCartesianChart.XAxes>
                <chart:NumericalAxis MinorTicksPerInterval="2">
                    <chart:NumericalAxis.MinorTickStyle>
                        <Style TargetType = "Line" >
                            <Setter Property="StrokeThickness" Value="2"/>
                            <Setter Property = "Stroke" Value="Red" />
                        </Style>
                    </chart:NumericalAxis.MinorTickStyle>
                </chart:NumericalAxis>
            </chart:SfCartesianChart.XAxes>
    
            <chart:SfCartesianChart.YAxes>
                <chart:NumericalAxis/>
            </chart:SfCartesianChart.YAxes>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
    
        NumericalAxis xAxis = new NumericalAxis();
        xAxis.MinorTicksPerInterval = 2;
        Style minorTickStyle = new Style() { TargetType = typeof(Line), };
        minorTickStyle.Setters.Add(new Setter(Path.StrokeThicknessProperty, 2));
        minorTickStyle.Setters.Add(new Setter(Path.StrokeProperty, new SolidColorBrush(Colors.Red)));
        xAxis.MinorTickStyle = minorTickStyle;
        chart.XAxes.Add(xAxis);
    
        NumericalAxis yAxis = new NumericalAxis();
        chart.YAxes.Add(yAxis);

    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 True.

    Examples
    • MainPage.xaml
    • MainPage.xaml.cs
    <chart:SfCartesianChart>
    
        <chart:SfCartesianChart.XAxes>
            <chart:NumericalAxis ShowMinorGridLines = "False" 
                                 MinorTicksPerInterval="2" />
        </chart:SfCartesianChart.XAxes>
    
    </chart:SfCartesianChart>
    SfCartesianChart chart = new SfCartesianChart();
    
    NumericalAxis xaxis = new NumericalAxis()
    {
       ShowMinorGridLines = false,
       MinorTicksPerInterval = 2,
    };
    chart.XAxes.Add(xaxis);

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved