ChartEventBuilder

Methods

AxisLabelClick(System.String)

Fired when the user clicks an axis label.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see AxisLabelClick event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the axisLabelClick event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.AxisLabelClick("onAxisLabelClick"))
            )
             

AxisLabelClick(System.Func)

Fired when the user clicks an axis label.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see AxisLabelClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.AxisLabelClick(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

DataBound(System.String)

Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DataBound event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the dataBound event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.DataBound("onDataBound"))
            )
             

DataBound(System.Func)

Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DataBound event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.DataBound(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

Drag(System.String)

Fired as long as the user is dragging the chart using the mouse or swipe gestures.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Drag event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the drag event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.Drag("onDrag"))
            )
             

Drag(System.Func)

Fired as long as the user is dragging the chart using the mouse or swipe gestures.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Drag event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.Drag(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

DragEnd(System.String)

Fired when the user stops dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DragEnd event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the dragEnd event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.DragEnd("onDragEnd"))
            )
             

DragEnd(System.Func)

Fired when the user stops dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DragEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.DragEnd(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

DragStart(System.String)

Fired when the user starts dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DragStart event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the dragStart event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.DragStart("onDragStart"))
            )
             

DragStart(System.Func)

Fired when the user starts dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DragStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.DragStart(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

Drilldown(System.String)

Fires when the user when the user wants to drill down on a specific point.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Drilldown event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the drilldown event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.Drilldown("onDrilldown"))
            )
             

Drilldown(System.Func)

Fires when the user when the user wants to drill down on a specific point.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Drilldown event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.Drilldown(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

DrilldownLevelChange(System.String)

Fires when the drill-down level has changed.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DrilldownLevelChange event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the drilldownLevelChange event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.DrilldownLevelChange("onDrilldownLevelChange"))
            )
             

DrilldownLevelChange(System.Func)

Fires when the drill-down level has changed.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see DrilldownLevelChange event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.DrilldownLevelChange(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

LegendItemClick(System.String)

Fires when an legend item is clicked, before the selected series visibility is toggled. Can be cancelled.

For more information see LegendItemClick event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the legendItemClick event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.LegendItemClick("onLegendItemClick"))
            )
             

LegendItemClick(System.Func)

Fires when an legend item is clicked, before the selected series visibility is toggled. Can be cancelled.

For more information see LegendItemClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.LegendItemClick(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

LegendItemHover(System.String)

Fires when an legend item is hovered.

For more information see LegendItemHover event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the legendItemHover event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.LegendItemHover("onLegendItemHover"))
            )
             

LegendItemHover(System.Func)

Fires when an legend item is hovered.

For more information see LegendItemHover event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.LegendItemHover(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

LegendItemLeave(System.String)

Fires when the cursor leaves a legend item.

For more information see LegendItemLeave event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the legendItemLeave event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.LegendItemLeave("onLegendItemLeave"))
            )
             

LegendItemLeave(System.Func)

Fires when the cursor leaves a legend item.

For more information see LegendItemLeave event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.LegendItemLeave(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

NoteClick(System.String)

Fired when the user clicks one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see NoteClick event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the noteClick event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.NoteClick("onNoteClick"))
            )
             

NoteClick(System.Func)

Fired when the user clicks one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see NoteClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.NoteClick(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

NoteHover(System.String)

Fired when the user hovers one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see NoteHover event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the noteHover event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.NoteHover("onNoteClick"))
            )
             

NoteHover(System.Func)

Fired when the user hovers one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see NoteHover event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.NoteHover(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

NoteLeave(System.String)

Fired when the cursor leaves a note.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see NoteLeave event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the noteLeave event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.NoteLeave("onNoteLeave"))
            )
             

NoteLeave(System.Func)

Fired when the cursor leaves a note.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see NoteLeave event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.NoteLeave(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

PaneRender(System.String)

Fires when a pane is rendered because the chart is rendered, or the chart performs panning or zooming, or because the chart is exported with different options. The event can be used to render custom visuals in the panes.

For more information see PaneRender event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the paneRender event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.PaneRender("onPaneRender"))
            )
             

PaneRender(System.Func)

Fires when a pane is rendered because the chart is rendered, or the chart performs panning or zooming, or because the chart is exported with different options. The event can be used to render custom visuals in the panes.

For more information see PaneRender event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.PaneRender(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

PlotAreaClick(System.String)

Fired when the user clicks the plot area.

For more information see PlotAreaClick event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the plotAreaClick event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.PlotAreaClick("onPlotAreaClick"))
            )
             

PlotAreaClick(System.Func)

Fired when the user clicks the plot area.

For more information see PlotAreaClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.PlotAreaClick(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

PlotAreaHover(System.String)

Fired when the user hovers the plot area.

For more information see PlotAreaHover event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the plotAreaHover event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.PlotAreaHover("onPlotAreaHover"))
            )
             

PlotAreaHover(System.Func)

Fired when the user hovers the plot area.

For more information see PlotAreaHover event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.PlotAreaHover(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

PlotAreaLeave(System.String)

Fired when the cursor leaves the plotArea.

For more information see PlotAreaLeave event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the plotAreaLeave event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.PlotAreaLeave("onPlotAreaLeave"))
            )
             

PlotAreaLeave(System.Func)

Fired when the cursor leaves the plotArea.

For more information see PlotAreaLeave event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.PlotAreaLeave(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

Render(System.String)

Fired when the chart is ready to render on screen.Can be used, for example, to remove loading indicators.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Render event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the render event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.Render("onRender"))
            )
             

Render(System.Func)

Fired when the chart is ready to render on screen.Can be used, for example, to remove loading indicators.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Render event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.Render(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

Select(System.String)

Fired when the user modifies the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Select event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the select event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.Select("onSelect"))
            )
             

Select(System.Func)

Fired when the user modifies the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.Select(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

SelectEnd(System.String)

Fired when the user completes modifying the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see SelectEnd event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the selectEnd event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.SelectEnd("onSelectEnd"))
            )
             

SelectEnd(System.Func)

Fired when the user completes modifying the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see SelectEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.SelectEnd(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

SelectStart(System.String)

Fired when the user starts modifying the axis selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see SelectStart event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the selectStart event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.SelectStart("onSelectStart"))
            )
             

SelectStart(System.Func)

Fired when the user starts modifying the axis selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see SelectStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.SelectStart(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

SeriesClick(System.String)

Fired when the user clicks the chart series.

For more information see SeriesClick event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the seriesClick event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.SeriesClick("onSeriesClick"))
            )
             

SeriesClick(System.Func)

Fired when the user clicks the chart series.

For more information see SeriesClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.SeriesClick(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

SeriesHover(System.String)

Fired when the user hovers the chart series.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see SeriesHover event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the seriesHover event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.SeriesHover("onSeriesHover"))
            )
             

SeriesHover(System.Func)

Fired when the user hovers the chart series.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see SeriesHover event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.SeriesHover(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

SeriesOver(System.String)

Fired when the cursor is over the chart series.

For more information see SeriesOver event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the seriesOver event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.SeriesOver("onSeriesOver"))
            )
             

SeriesOver(System.Func)

Fired when the cursor is over the chart series.

For more information see SeriesOver event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.SeriesOver(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

SeriesLeave(System.String)

Fired when the cursor leaves a chart series.

For more information see SeriesLeave event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the seriesLeave event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.SeriesLeave("onSeriesLeave"))
            )
             

SeriesLeave(System.Func)

Fired when the cursor leaves a chart series.

For more information see SeriesLeave event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.SeriesLeave(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

Zoom(System.String)

Fired as long as the user is zooming the chart using the mousewheel.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Zoom event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the zoom event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.Zoom("onZoom"))
            )
             

Zoom(System.Func)

Fired as long as the user is zooming the chart using the mousewheel.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see Zoom event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.Zoom(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

ZoomEnd(System.String)

Fired when the user stops zooming the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see ZoomEnd event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the zoomEnd event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.ZoomEnd("onZoomEnd"))
            )
             

ZoomEnd(System.Func)

Fired when the user stops zooming the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see ZoomEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.ZoomEnd(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )
             

ZoomStart(System.String)

Fired when the user uses the mousewheel to zoom the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see ZoomStart event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the zoomStart event.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                    .Events(e => e.ZoomStart("onZoomStart"))
            )
             

ZoomStart(System.Func)

Fired when the user uses the mousewheel to zoom the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see ZoomStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of ChartEventBuilder .

Example

Razor
 
            @(Html.Kendo().Chart@<Kendo.Mvc.Examples.Models.ElectricityProduction>()
                    .Name("chart")
                        .Events(events => events.ZoomStart(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )