New to Telerik UI for ASP.NET Core? Download free 30-day trial

ChartSelectionMousewheelBuilder

Methods

Reverse()

Reverses the mousewheel direction. Rotating the wheel down will shrink the selection, rotating up will expand it.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.Select(select => select
                          .From(fromDate).To(toDate)
                          .Mousewheel(mw => mw.Reverse())
                      ))
            )

Reverse(System.Boolean)

Sets a value indicating if the mousewheel should be reversed.

Parameters

reverse - System.Boolean

true: scrolling up shrinks the selection. false: scrolling down expands the selection.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.Select(select => select
                          .From(fromDate).To(toDate)
                          .Mousewheel(mw => mw.Reverse(true))
                      ))
            )

Zoom(Kendo.Mvc.UI.ChartZoomDirection)

Sets the mousewheel zoom type

Parameters

zoom - ChartZoomDirection

The mousewheel zoom type. Default value is ChartZoomDirection.Both

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.Select(select =>
                          select.From(from).To(to)
                          .Mousewheel(mw => mw.Zoom(ChartZoomDirection.Left))
                      ))
            )

In this article
Not finding the help you need?