RadzenChartRangeNavigator Class

Attaches a RadzenRangeNavigator below a RadzenChart, automatically bound to the chart's view range. Dragging the navigator window zooms the chart; zooming or panning the chart moves the navigator window. No manual binding is required. Declare RadzenRangeNavigatorLineSeries<T> children to display a data preview, or leave empty for a compact navigator.

Inheritance

Object

ComponentBase

RadzenChartComponentBase

RadzenChartRangeNavigator

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

RadzenChartComponentBase.SetParametersAsync

RadzenChartComponentBase.ValidateParameters

RadzenChartComponentBase.DidParameterChange

RadzenChartComponentBase.Chart

ComponentBase.BuildRenderTree

ComponentBase.OnInitialized

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenChartRangeNavigator : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Examples

<RadzenChart AllowZoom="true" AllowPan="true">
    <RadzenLineSeries Data=@data CategoryProperty="Date" ValueProperty="Value" />
    <RadzenChartRangeNavigator>
        <RadzenRangeNavigatorLineSeries Data=@data CategoryProperty="Date" ValueProperty="Value" />
    </RadzenChartRangeNavigator>
</RadzenChart>

Constructors

RadzenChartRangeNavigatorLink to this section

Attaches a RadzenRangeNavigator below a RadzenChart, automatically bound to the chart's view range. Dragging the navigator window zooms the chart; zooming or panning the chart moves the navigator window. No manual binding is required. Declare RadzenRangeNavigatorLineSeries<T> children to display a data preview, or leave empty for a compact navigator.

Declaration
public RadzenChartRangeNavigator()

Properties

ChildContentLink to this section

Gets or sets the child content. Used to declare RadzenRangeNavigatorLineSeries<T> preview series.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content. Used to declare RadzenRangeNavigatorLineSeries<T> preview series.

HandleLabelFormatStringLink to this section

Gets or sets the format string used to format the handle labels.

Declaration
public string HandleLabelFormatString { get; set; }
Property Value
Type Description
stringGets or sets the format string used to format the handle labels.

HandleLabelFormatterLink to this section

Gets or sets a formatter function that formats the handle label values. Receives a DateTime for date ranges or a Double for numeric ranges. Takes precedence over HandleLabelFormatString when set.

Declaration
public Func<object, string> HandleLabelFormatter { get; set; }
Property Value
Type Description
Func<object, string>Gets or sets a formatter function that formats the handle label values. Receives a DateTime for date ranges or a Double for numeric ranges. Takes precedence over HandleLabelFormatString when set.

HeightLink to this section

Gets or sets the height of the navigator in pixels.

Declaration
public double Height { get; set; }
Property Value
Type Description
doubleGets or sets the height of the navigator in pixels.

ShowHandleLabelsLink to this section

Gets or sets a value indicating whether labels with the current range values are displayed next to the drag handles.

Declaration
public bool ShowHandleLabels { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether labels with the current range values are displayed next to the drag handles.

VisibleLink to this section

Gets or sets a value indicating whether the navigator is displayed. Set to true by default.

Declaration
public bool Visible { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether the navigator is displayed. Set to true by default.

Methods

InitializeLink to this section

Declaration
protected override void Initialize()

ShouldRefreshChartLink to this section

Declaration
protected override bool ShouldRefreshChart(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
bool
An error has occurred. This app may no longer respond until reloaded. Reload 🗙