Defines the fluent API for configuring ChartLegendItemSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartLegendItemSettingsBuilder<T> where T : class
Inheritance: objectChartLegendItemSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartLegendItemSettingsBuilder<T> class.
public ChartLegendItemSettingsBuilder(ChartLegendItemSettings<T> container)
The ChartLegendItemSettings<T> container
Properties
Gets the ChartLegendItemSettings<T> container.
protected ChartLegendItemSettings<T> Container { get; }
Methods
Sets the configuration of the legend items of type area. By default, all series except line and scatter use this legend type.
public ChartLegendItemSettingsBuilder<T> Area(Action<ChartLegendItemAreaSettingsBuilder<T>> configurator)
The ChartLegendItemAreaSettingsBuilder<T> for the area setting.
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current instance of ChartLegendItemSettingsBuilder<T> .
The cursor style of the legend item.
public ChartLegendItemSettingsBuilder<T> Cursor(string value)
The value for Cursor
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current ChartLegendItemSettingsBuilder<T> instance.
The highlight configuration of the legend item.
public ChartLegendItemSettingsBuilder<T> Highlight(Action<ChartLegendItemHighlightSettingsBuilder<T>> configurator)
The ChartLegendItemHighlightSettingsBuilder<T> for the highlight setting.
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current instance of ChartLegendItemSettingsBuilder<T> .
Sets the configuration of the legend items of type line. This is the default legend item type for all line and scatter series.
public ChartLegendItemSettingsBuilder<T> Line(Action<ChartLegendItemLineSettingsBuilder<T>> configurator)
The ChartLegendItemLineSettingsBuilder<T> for the line setting.
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current instance of ChartLegendItemSettingsBuilder<T> .
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.
public ChartLegendItemSettingsBuilder<T> Markers(Action<ChartLegendItemMarkersSettingsBuilder<T>> configurator)
The ChartLegendItemMarkersSettingsBuilder<T> for the markers setting.
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current instance of ChartLegendItemSettingsBuilder<T> .
The type of the legend items.
public ChartLegendItemSettingsBuilder<T> Type(ChartLegendItemType value)
The value for Type
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current ChartLegendItemSettingsBuilder<T> instance.
A function that can be used to create a custom visual for the legend items. The available argument fields are: options—The item options.; createVisual—A function for getting the default visual.; series—The item series. or pointIndex—The index of the point in the series. Available for the Pie, Donut, and Funnel series..
public ChartLegendItemSettingsBuilder<T> Visual(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current ChartLegendItemSettingsBuilder<T> instance.
A function that can be used to create a custom visual for the legend items. The available argument fields are: options—The item options.; createVisual—A function for getting the default visual.; series—The item series. or pointIndex—The index of the point in the series. Available for the Pie, Donut, and Funnel series..
public ChartLegendItemSettingsBuilder<T> Visual(string handler)
The name of the JavaScript function that will be evaluated.
Returns:ChartLegendItemSettingsBuilder<T>
Returns the current ChartLegendItemSettingsBuilder<T> instance.