<kendo:chart-legend-item>

The configuration of the Chart legend item.To override the marker configuration of individual series, use the series.legendItem settings of the series.

Example

<kendo:chart-legend>
    <kendo:chart-legend-item></kendo:chart-legend-item>
</kendo:chart-legend>

Configuration Attributes

cursor java.lang.String

The cursor style of the legend item.

Example

<kendo:chart-legend-item cursor="cursor">
</kendo:chart-legend-item>

type java.lang.String

Sets the type of the legend items. The default value is based on the series type.The supported values are: "line"—the legend items are rendered as a line. This is the default value for line charts. or "area"—the legend items are rendered as a filled rectangle. This is the default value for area charts..

Example

<kendo:chart-legend-item type="type">
</kendo:chart-legend-item>

visual java.lang.String

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..

Example

<kendo:chart-legend-item visual="visual">
</kendo:chart-legend-item>

Configuration JSP Tags

kendo:chart-legend-item-area

Sets the configuration of the legend items of type area. By default, all series except line and scatter use this legend type.

More documentation is available at kendo:chart-legend-item-area.

Example

<kendo:chart-legend-item>
    <kendo:chart-legend-item-area></kendo:chart-legend-item-area>
</kendo:chart-legend-item>

kendo:chart-legend-item-highlight

The highlight configuration of the legend item.

More documentation is available at kendo:chart-legend-item-highlight.

Example

<kendo:chart-legend-item>
    <kendo:chart-legend-item-highlight></kendo:chart-legend-item-highlight>
</kendo:chart-legend-item>

kendo:chart-legend-item-line

Sets the configuration of the legend items of type line. This is the default legend item type for all line and scatter series.

More documentation is available at kendo:chart-legend-item-line.

Example

<kendo:chart-legend-item>
    <kendo:chart-legend-item-line></kendo:chart-legend-item-line>
</kendo:chart-legend-item>

kendo:chart-legend-item-markers

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.

More documentation is available at kendo:chart-legend-item-markers.

Example

<kendo:chart-legend-item>
    <kendo:chart-legend-item-markers></kendo:chart-legend-item-markers>
</kendo:chart-legend-item>

Event Attributes

visual String

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..

Example

<kendo:chart-legend-item visual="handle_visual">
</kendo:chart-legend-item>
<script>
    function handle_visual(e) {
        // Code to handle the visual event.
    }
</script>

Event Tags

kendo:chart-legend-item-visual

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..

Example

<kendo:chart-legend-item>
    <kendo:chart-legend-item-visual>
        <script>
            function(e) {
                // Code to handle the visual event.
            }
        </script>
    </kendo:chart-legend-item-visual>
</kendo:chart-legend-item>
In this article
Not finding the help you need?