Class RangeAxisBase

    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
    NumericalAxis
    Inherited Members
    ChartAxis.PlotOffsetStartProperty
    ChartAxis.PlotOffsetEndProperty
    ChartAxis.AxisLineOffsetProperty
    ChartAxis.LabelsIntersectActionProperty
    ChartAxis.LabelExtentProperty
    ChartAxis.LabelRotationProperty
    ChartAxis.AxisLineStyleProperty
    ChartAxis.OpposedPositionProperty
    ChartAxis.HeaderProperty
    ChartAxis.HeaderStyleProperty
    ChartAxis.HeaderTemplateProperty
    ChartAxis.TickLineSizeProperty
    ChartAxis.IsInversedProperty
    ChartAxis.EdgeLabelsDrawingModeProperty
    ChartAxis.MajorGridLineStyleProperty
    ChartAxis.MajorTickStyleProperty
    ChartAxis.ShowTrackballInfoProperty
    ChartAxis.TrackballLabelTemplateProperty
    ChartAxis.CrosshairLabelTemplateProperty
    ChartAxis.ShowMajorGridLinesProperty
    ChartAxis.LabelStyleProperty
    ChartAxis.LabelTemplateProperty
    ChartAxis.EnableAutoIntervalOnZoomingProperty
    ChartAxis.ZoomPositionProperty
    ChartAxis.ZoomFactorProperty
    ChartAxis.ValueToPoint(Double)
    ChartAxis.PointToValue(Double, Double)
    ChartAxis.GetActualDesiredIntervalsCount(Size)
    ChartAxis.CalculateNiceInterval(DoubleRange, Size)
    ChartAxis.CalculateActualInterval(DoubleRange, Size)
    ChartAxis.ApplyRangePadding(DoubleRange, Double)
    ChartAxis.OnLabelCreated(ChartAxisLabel)
    ChartAxis.CalculateVisibleRange(DoubleRange, Size)
    ChartAxis.CalculateActualRange()
    ChartAxis.CalculateVisibleInterval(DoubleRange, Size)
    ChartAxis.MeasureOverride(Size)
    ChartAxis.OnApplyTemplate()
    ChartAxis.PlotOffsetStart
    ChartAxis.PlotOffsetEnd
    ChartAxis.AxisLineOffset
    ChartAxis.LabelRotation
    ChartAxis.AxisLineStyle
    ChartAxis.LabelStyle
    ChartAxis.Header
    ChartAxis.HeaderStyle
    ChartAxis.HeaderTemplate
    ChartAxis.IsInversed
    ChartAxis.EdgeLabelsDrawingMode
    ChartAxis.MajorGridLineStyle
    ChartAxis.MajorTickStyle
    ChartAxis.ZoomPosition
    ChartAxis.ZoomFactor
    ChartAxis.ShowMajorGridLines
    ChartAxis.EnableAutoIntervalOnZooming
    ChartAxis.LabelsIntersectAction
    ChartAxis.LabelExtent
    ChartAxis.OpposedPosition
    ChartAxis.TickLineSize
    ChartAxis.ShowTrackballInfo
    ChartAxis.TrackballLabelTemplate
    ChartAxis.CrosshairLabelTemplate
    ChartAxis.LabelTemplate
    ChartAxis.ActualRangeChanged
    ChartAxis.LabelCreated
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.Chart.WinUI.dll
    Syntax
    public abstract class RangeAxisBase : ChartAxis

    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 Description
    Microsoft.UI.Xaml.DependencyProperty

    MinorGridLineStyleProperty

    The DependencyProperty for MinorGridLineStyle property.

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

    MinorTickLineSizeProperty

    The DependencyProperty for MinorTickLineSize property.

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

    MinorTicksPerIntervalProperty

    The DependencyProperty for MinorTicksPerInterval property.

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

    MinorTickStyleProperty

    The DependencyProperty for MinorTickStyle property.

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

    ShowMinorGridLinesProperty

    The DependencyProperty for ShowMinorGridLines property.

    Declaration
    public static readonly DependencyProperty ShowMinorGridLinesProperty
    Field Value
    Type Description
    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);
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved