New to Kendo UI for jQuery? Start a free 30-day trial

The highlight configuration of the legend item.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: new Date(2000, 1, 1), open: 10, high: 15, low: 8, close: 12 },
            { date: new Date(2000, 1, 2), open: 12, high: 18, low: 10, close: 16 }
        ]
    },
    dateField: "date",
    series: [{
        type: "candlestick",
        openField: "open",
        highField: "high",
        lowField: "low",
        closeField: "close",
        legendItem: {
            highlight: {
                visible: true,
                markers: {
                    background: "yellow"
                }
            }
        }
    }]
});
</script>

The markers configuration of the legend item when it is hovered.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: new Date(2000, 1, 1), open: 10, high: 15, low: 8, close: 12 },
            { date: new Date(2000, 1, 2), open: 12, high: 18, low: 10, close: 16 }
        ]
    },
    dateField: "date",
    series: [{
        type: "line",
        field: "close",
        legendItem: {
            highlight: {
                markers: {
                    background: "red",
                    border: {
                        color: "blue",
                        width: 2
                    }
                }
            }
        }
    }]
});
</script>

If set to false, the hover effect of the legend item is disabled.

Default: true

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: new Date(2023, 1, 1), open: 100, high: 110, low: 90, close: 105 },
            { date: new Date(2023, 1, 2), open: 105, high: 115, low: 95, close: 110 }
        ]
    },
    categoryField: "date",
    series: [{
        type: "candlestick",
        openField: "open",
        highField: "high",
        lowField: "low",
        closeField: "close",
        legendItem: {
            highlight: {
                visible: false
            }
        }
    }]
});
</script>