<kendo:sankey-legend-item>

The configuration of the legend items.

Example

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

Configuration Attributes

areaBackground java.lang.String

The background color of the legend item square element. Accepts a valid CSS color string, including HEX and RGB. Defaults to the corresponding node color.

Example

<kendo:sankey-legend-item areaBackground="areaBackground">
</kendo:sankey-legend-item>

areaOpacity float

The opacity of the legend item square element. Defaults to the corresponding node opacity.

Example

<kendo:sankey-legend-item areaOpacity="areaOpacity">
</kendo:sankey-legend-item>

cursor java.lang.String

The cursor style of the legend item.

Example

<kendo:sankey-legend-item cursor="cursor">
</kendo:sankey-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. or createVisual—A function for getting the default visual..

Example

<kendo:sankey-legend-item visual="visual">
</kendo:sankey-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. or createVisual—A function for getting the default visual..

Example

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

Event Tags

kendo:sankey-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. or createVisual—A function for getting the default visual..

Example

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