Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class AxisBase

    Base class for an axis in RadzenChart.

    Inheritance
    object
    ComponentBase
    RadzenChartComponentBase
    AxisBase
    RadzenCategoryAxis
    RadzenValueAxis
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IChartAxis
    Inherited Members
    RadzenChartComponentBase.Initialize()
    RadzenChartComponentBase.SetParametersAsync(ParameterView)
    RadzenChartComponentBase.ValidateParameters()
    RadzenChartComponentBase.DidParameterChange<T>(ParameterView, string, T)
    RadzenChartComponentBase.Chart
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public abstract class AxisBase : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IChartAxis

    Constructors

    AxisBase()

    Base class for an axis in RadzenChart.

    Declaration
    protected AxisBase()

    Properties

    ChildContent

    Gets or sets the child content.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    The child content.

    FormatString

    Gets or sets the format string used to display the axis values.

    Declaration
    [Parameter]
    public string FormatString { get; set; }
    Property Value
    Type Description
    string

    The format string.

    Formatter

    Gets or sets a formatter function that formats the axis values.

    Declaration
    [Parameter]
    public Func<object, string> Formatter { get; set; }
    Property Value
    Type Description
    Func<object, string>

    The formatter.

    GridLines

    Gets or sets the grid lines configuration of the current axis.

    Declaration
    public RadzenGridLines GridLines { get; set; }
    Property Value
    Type Description
    RadzenGridLines

    The grid lines.

    LabelAutoRotation

    Specifies the automatic label rotation angle in degrees. If set RadzenChart will automatically rotate the labels to fit the available space by the specified value. Has lower precedence than LabelRotation.

    Declaration
    [Parameter]
    public double? LabelAutoRotation { get; set; }
    Property Value
    Type Description
    double?

    LabelRotation

    Specifies the label rotation angle in degrees. Set to null by default which means no rotation is applied. Has higher precedence than LabelAutoRotation.

    Declaration
    [Parameter]
    public double? LabelRotation { get; set; }
    Property Value
    Type Description
    double?

    LineType

    Gets or sets the type of the line used to display the axis.

    Declaration
    [Parameter]
    public LineType LineType { get; set; }
    Property Value
    Type Description
    LineType

    The type of the line.

    Max

    Specifies the maximum value of the axis.

    Declaration
    [Parameter]
    public object Max { get; set; }
    Property Value
    Type Description
    object

    The maximum.

    Min

    Specifies the minimum value of the axis.

    Declaration
    [Parameter]
    public object Min { get; set; }
    Property Value
    Type Description
    object

    The minimum.

    Step

    Specifies the step of the axis.

    Declaration
    [Parameter]
    public object Step { get; set; }
    Property Value
    Type Description
    object

    Stroke

    Gets or sets the stroke (line color) of the axis.

    Declaration
    [Parameter]
    public string Stroke { get; set; }
    Property Value
    Type Description
    string

    The stroke.

    StrokeWidth

    Gets or sets the pixel width of axis.

    Declaration
    [Parameter]
    public double StrokeWidth { get; set; }
    Property Value
    Type Description
    double

    The width of the stroke.

    TickDistance

    Gets or sets the pixel distance between axis ticks. It is used to calculate the number of visible ticks depending on the available space. Set to 100 by default; Setting Step will override this value.

    Declaration
    [Parameter]
    public int TickDistance { get; set; }
    Property Value
    Type Description
    int

    The desired pixel distance between ticks.

    Ticks

    Gets or sets the ticks configuration.

    Declaration
    public RadzenTicks Ticks { get; set; }
    Property Value
    Type Description
    RadzenTicks

    The ticks.

    Title

    Gets or sets the title configuration.

    Declaration
    public RadzenAxisTitle Title { get; set; }
    Property Value
    Type Description
    RadzenAxisTitle

    The title.

    Visible

    Gets or sets a value indicating whether this AxisBase is visible.

    Declaration
    [Parameter]
    public bool Visible { get; set; }
    Property Value
    Type Description
    bool

    true if visible; otherwise, false.

    Methods

    ShouldRefreshChart(ParameterView)

    Determines if RadzenChart should render.

    Declaration
    protected override bool ShouldRefreshChart(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters

    The parameters.

    Returns
    Type Description
    bool
    Overrides
    RadzenChartComponentBase.ShouldRefreshChart(ParameterView)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IChartAxis

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT