Kendo.Mvc.UI.Fluent.ChartLegendItemBuilder

Defines the fluent interface for configuring the legend items.

Methods

Cursor(System.String)

Sets the legend item cursor style

Parameters

cursor System.String

The cursor style.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Legend(legend => legend.Item(item => item.Cursor("pointer")))
)

Visual(System.String)

Sets the legend item visual handler

Parameters

handler System.String

The JavaScript item visual handler name.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Legend(legend => legend.Item(item => item.Visual("itemVisual")))
)

Visual(System.Func<System.Object,System.Object>)

Sets the note visual handler

Parameters

handler System.Func<System.Object,System.Object>

The handler

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .Legend(legend => legend.Item(item => item.Visual(
            @<text>
                function(e) {
                return e.createVisual(); // returns the default visual
                }
                </text>
                )))
            )
In this article
Not finding the help you need?