Class ChartZoomSettings
Options to customize the zoom settings of the chart.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartZoomSettings : ChartSubComponent, ISubcomponentTracker
Constructors
ChartZoomSettings()
Declaration
public ChartZoomSettings()
Properties
AccessibilityDescriptionFormat
Gets or sets the format for the toolkit accessibility description of the ToolbarItems.
Declaration
public string AccessibilityDescriptionFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string that defines the format for the toolkit accessibility description of the ToolbarItems. The default value is null. |
Remarks
Use this property to specify a format for the toolkit accessibility description of the ToolbarItems. The placeholder ${value} can be used to set the accessibility text for the zoom toolkit toolbar item name. For example, the format "Selected the ${value} option" will read as "Selected the ZoomIn option" for the ZoomIn button.
AccessibilityRole
Gets or sets the accessibility role for the ChartZoomSettings chart zoom toolkit.
Declaration
public string AccessibilityRole { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string that defines the accessibility role for the ChartZoomSettings chart zoom toolkit. The default value is null. |
Remarks
Use this property to provide an accessibility role for the ChartZoomSettings chart zoom toolkit.
EnableDeferredZooming
Gets or sets a value indicating whether to update the chart with a delay while panning.
Declaration
public bool EnableDeferredZooming { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if updating the chart with a delay while panning is enabled; otherwise, false. The default value is true. |
Remarks
Enabling this option can provide a smoother user experience during panning by introducing a delay before the chart is updated.
EnableMouseWheelZooming
Gets or sets a value indicating whether the chart can be zoomed using the mouse wheel.
Declaration
public bool EnableMouseWheelZooming { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the chart can be zoomed using the mouse wheel; otherwise, false. The default value is false. |
Remarks
Enabling this option allows users to zoom in or out on the chart by using the mouse wheel.
EnablePan
Gets or sets a value indicating whether the chart can be panned when zoomed.
Declaration
public bool EnablePan { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the chart can be panned when zoomed; otherwise, false. The default value is false. |
Remarks
Enabling this option allows users to pan across the zoomed-in chart area for better exploration of specific regions.
EnablePinchZooming
Gets or sets a value indicating whether the chart can be zoomed through pinch gestures on touch-enabled devices.
Declaration
public bool EnablePinchZooming { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the chart can be zoomed through pinch gestures; otherwise, false. The default value is false. |
Remarks
Enabling this option allows users to zoom in or zoom out on the chart by performing pinch gestures on touch-enabled devices.
EnableScrollbar
Gets or sets a value indicating whether the axis should have a scrollbar when zoomed.
Declaration
public bool EnableScrollbar { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the axis should have a scrollbar when zoomed; otherwise, false. The default value is false. |
Remarks
Enabling this option allows users to navigate and visualize specific regions of the chart using scrollbar when zoomed.
EnableSelectionZooming
Gets or sets a value indicating whether the chart can be zoomed by selecting a rectangular region on the plot area.
Declaration
public bool EnableSelectionZooming { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the chart can be zoomed by selecting a rectangular region on the plot area; otherwise, false. The default value is false. |
Remarks
Enabling this option provides an interactive way for users to focus on specific areas of interest within the chart.
Focusable
Gets or sets the accessibility keyboard navigation options for the ChartZoomSettings chart zoom toolkit.
Declaration
public bool Focusable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Accepts the boolean value to enable or disable the keyboard navigation for the ChartZoomSettings chart zoom toolkit. The default value is true. |
Remarks
Use this property to toggle the keyboard navigation focus for the ChartZoomSettings chart zoom toolkit.
Mode
Gets or sets the mode of zooming.
Declaration
public ZoomMode Mode { get; set; }
Property Value
Type | Description |
---|---|
ZoomMode | One of the ZoomMode enumeration that specifies the mode of zooming. The options include:
|
Remarks
This property can be set to allow zooming both vertically and horizontally, only horizontally, or only vertically.
ToolbarDisplayMode
Gets or sets the visibility mode for the zooming toolbar in the chart.
Declaration
public ToolbarMode ToolbarDisplayMode { get; set; }
Property Value
Type | Description |
---|---|
ToolbarMode | One of the ToolbarMode enumeration that specifies the visibility mode for the zooming toolbar. The options include:
|
Remarks
It determines whether the toolbar should be visible only when the chart is zoomed, always visible, or never visible.
ToolbarItems
Gets or sets the list of items to be added in the toolbar for the chart.
Declaration
public List<ToolbarItems> ToolbarItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ToolbarItems> | The list of ToolbarItems to be displayed in the chart toolbar. The available items include:
|
Remarks
The ToolbarItems property allows customization of the items displayed in the chart toolbar. Users can choose from a set of predefined items, such as Zoom, ZoomIn, ZoomOut, Pan, and Reset, to be included in the toolbar.
Methods
OnInitialized()
Declaration
protected override void OnInitialized()
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |