New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent interface for configuring the ChartAxisSelectionBuilder.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartAxisSelectionBuilder

Inheritance: objectChartAxisSelectionBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartAxisSelectionBuilder class.

C#
public ChartAxisSelectionBuilder(ChartAxisSelection chartSelection)
Parameters:chartSelectionChartAxisSelection

The chart selection.

Methods

Sets the lower boundary of the selected axis range.

C#
public ChartAxisSelectionBuilder From(DateTime fromDate)
Parameters:fromDateDateTime

The lower boundary value.

Returns:

ChartAxisSelectionBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =>
axis.Select(select => select.From(new DateTime(2024, 1, 1)))
)
)

Sets the lower boundary of the selected axis range.

C#
public ChartAxisSelectionBuilder From(double from)
Parameters:fromdouble

The lower boundary value.

Returns:

ChartAxisSelectionBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =>
axis.Select(select => select.From(100))
)
)

Defines the mouse wheel configuration of the selection.

C#
public ChartAxisSelectionBuilder Mousewheel(Action<ChartSelectionMousewheelBuilder> configurator)
Parameters:configuratorAction<ChartSelectionMousewheelBuilder>

The action that configures the mouse wheel options.

Returns:

ChartAxisSelectionBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =&gt; axis
.Select(select =&gt; select.Mousewheel(mouse=&gt;mouse.Zoom(ChartZoomDirection.Right)))
)
)

If set to "true", the zooming of the axis selection will be enabled.

C#
public ChartAxisSelectionBuilder Mousewheel(bool value)
Parameters:valuebool

The options that enables/disables the zooming.

Returns:

ChartAxisSelectionBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =&gt; axis
.Select(select =&gt; select.Mousewheel(false))
)
)

Sets the upper boundary of the selected axis range.

C#
public ChartAxisSelectionBuilder To(DateTime toDate)
Parameters:toDateDateTime

The upper boundary value.

Returns:

ChartAxisSelectionBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =&gt;
axis.Select(select =&gt; select.From(new DateTime(2024, 1, 1)).To(new DateTime(2024, 2, 1)))
)
)

Sets the upper boundary of the selected axis range.

C#
public ChartAxisSelectionBuilder To(double to)
Parameters:todouble

The upper boundary value.

Returns:

ChartAxisSelectionBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =&gt;
axis.Select(select =&gt; select.From(100).To(200))
)
)