ClassChartCategoryAxisAutoBaseUnitSteps
Configures automatic time unit stepping for time-based category axes in ChartCategoryAxis. This component defines which intervals the chart can use when automatically scaling time-based data, from milliseconds to years. Use this to control how the chart selects appropriate time intervals based on data density and chart size, ensuring optimal label spacing and readability for time series visualizations.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisAutoBaseUnitSteps : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisAutoBaseUnitSteps
Implements:
Inherited Members
Constructors
ChartCategoryAxisAutoBaseUnitSteps()
Declaration
public ChartCategoryAxisAutoBaseUnitSteps()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Days
Defines the allowed step intervals for day-based automatic axis scaling. Specifies which day intervals the chart can use when automatically scaling time-based category axes. Standard values include [1, 2, 3, 7] for daily, every other day, every 3 days, and weekly intervals.
Hours
Defines the allowed step intervals for hour-based automatic axis scaling. Controls which hour intervals are available for automatic time axis scaling. Common configurations include [1, 2, 3, 6, 12] for hourly, bi-hourly, 3-hourly, 6-hourly, and 12-hourly intervals.
Milliseconds
Defines the allowed step intervals for millisecond-based automatic axis scaling. Use this to control how the chart automatically selects time intervals when dealing with high-frequency data. For example, [1, 5, 10, 50, 100] allows steps of 1ms, 5ms, 10ms, 50ms, and 100ms intervals.
Declaration
[Parameter]
public int[] Milliseconds { get; set; }
Property Value
int[]
Minutes
Defines the allowed step intervals for minute-based automatic axis scaling. Specifies which minute intervals the chart can use for automatic time scaling. Typical values are [1, 2, 5, 10, 15, 30] for intervals like every minute, every 2 minutes, every 5 minutes, etc.
Months
Defines the allowed step intervals for month-based automatic axis scaling. Specifies which month intervals the chart can use for automatic time axis scaling. Common configurations include [1, 2, 3, 6, 12] for monthly, bi-monthly, quarterly, semi-annual, and annual intervals.
Seconds
Defines the allowed step intervals for second-based automatic axis scaling. Controls the available second intervals for time-based category axes. Common values include [1, 2, 5, 10, 15, 30] for standard time increments like every second, every 2 seconds, every 5 seconds, etc.
Weeks
Defines the allowed step intervals for week-based automatic axis scaling. Controls which week intervals are available for automatic time scaling. Typical values are [1, 2, 4] for weekly, bi-weekly, and monthly (4-week) intervals when displaying long-term time series data.
Years
Defines the allowed step intervals for year-based automatic axis scaling. Controls which year intervals are available when displaying long-term historical data. Standard values include [1, 2, 5, 10, 20] for annual, bi-annual, 5-year, decade, and 20-year intervals.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns