ClassChartPannable
Configures chart panning functionality to enable interactive chart navigation. Allows users to pan (scroll) through chart data by dragging the chart plot area, providing smooth data exploration for large datasets. Supports keyboard modifiers and axis locking to control panning behavior and enhance user experience.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartPannable : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartPannable
Implements:
Inherited Members
Constructors
ChartPannable()
Declaration
public ChartPannable()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Enabled
Enables or disables chart panning functionality. When true, users can drag the chart plot area to navigate through data, providing smooth scrolling for large datasets. When false, panning is disabled and the chart remains static. Default behavior depends on chart configuration and data size.
Key
Specifies the keyboard modifier key that must be pressed to activate panning. Use ChartPannableKey values like Ctrl, Alt, or Shift to prevent accidental panning during other interactions. When set, users must hold the specified key while dragging to pan the chart.
Declaration
[Parameter]
public ChartPannableKey? Key { get; set; }
Property Value
Lock
Restricts panning to specific chart axes using ChartAxisLock values. Set to prevent panning along certain axes (X, Y, or both) to maintain data context or enforce specific navigation patterns. Useful for time-series charts where only horizontal scrolling is desired.
Declaration
[Parameter]
public ChartAxisLock? Lock { get; set; }
Property Value
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