ChartLegendItemBuilder
Methods
Area(System.Action)
Sets the configuration of the legend items of type area. By default, all series except line and scatter use this legend type.
Parameters
configurator - System.Action<ChartLegendItemAreaSettingsBuilder>
The configurator for the area setting.
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")))
)
Highlight(System.Action)
The highlight configuration of the legend item.
Parameters
configurator - System.Action<ChartLegendItemHighlightSettingsBuilder>
The configurator for the highlight setting.
Line(System.Action)
Sets the configuration of the legend items of type line. This is the default legend item type for all line and scatter series.
Parameters
configurator - System.Action<ChartLegendItemLineSettingsBuilder>
The configurator for the line setting.
Markers(System.Action)
The configuration of the Chart legend item markers.By default, the marker configuration will be the same as the series.markers settings of the displayed series.
Parameters
configurator - System.Action<ChartLegendItemMarkersSettingsBuilder>
The configurator for the markers setting.
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>
)))
)
Type(Kendo.Mvc.UI.ChartLegendItemType)
The type of the legend items.
Parameters
value - ChartLegendItemType
The value for Type