New to Kendo UI for jQueryStart a free 30-day trial

Hover.fill

configuration

Defines the hover fill options of the shape.

hover.fill

String|Object
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: {
            text: "Hover over me"
        },
        hover: {
            fill: {
                color: "yellow",
                opacity: 0.8
            }
        }
    }]
});
</script>

Defines the hover fill color of the shape.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: {
            text: "Hover changes color"
        },
        fill: {
            color: "blue"
        },
        hover: {
            fill: {
                color: "red"
            }
        }
    }]
});
</script>

Defines the hover fill opacity of the shape.

Default: 1

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    shapes: [{
        id: "1",
        content: {
            text: "Hover changes opacity"
        },
        fill: {
            color: "green",
            opacity: 1
        },
        hover: {
            fill: {
                color: "green",
                opacity: 0.3
            }
        }
    }]
});
</script>