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

ChartLegendItemBuilder

Methods

Cursor(System.String)

Sets the legend item cursor style

Parameters

cursor - System.String

The cursor style.

Example


            @(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


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

Visual(System.Func)

Sets the note visual handler

Parameters

handler - System.Func<Object,Object>

The handler

Example


            @(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?