ChartAxisSelectionBuilder
Methods
From(System.DateTime)
Sets the lower boundary of the selected axis range.
Parameters
fromDate - System.DateTime
The lower boundary value.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =>
axis.Select(select => select.From(new DateTime(2024, 1, 1)))
)
)
From(System.Double)
Sets the lower boundary of the selected axis range.
Parameters
from - System.Double
The lower boundary value.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =>
axis.Select(select => select.From(100))
)
)
To(System.DateTime)
Sets the upper boundary of the selected axis range.
Parameters
toDate - System.DateTime
The upper boundary value.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =>
axis.Select(select => select.From(new DateTime(2024, 1, 1)).To(new DateTime(2024, 2, 1)))
)
)
To(System.Double)
Sets the upper boundary of the selected axis range.
Parameters
to - System.Double
The upper boundary value.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =>
axis.Select(select => select.From(100).To(200))
)
)
Mousewheel(System.Action)
Defines the mouse wheel configuration of the selection.
Parameters
configurator - System.Action<ChartSelectionMousewheelBuilder>
The action that configures the mouse wheel options.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis => axis
.Select(select => select.Mousewheel(mouse=>mouse.Zoom(ChartZoomDirection.Right)))
)
)
Mousewheel(System.Boolean)
If set to "true", the zooming of the axis selection will be enabled.
Parameters
value - System.Boolean
The options that enables/disables the zooming.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis => axis
.Select(select => select.Mousewheel(false))
)
)