shapeDefaults.hover Object

Defines the hover configuration.

Example - changing the shapes default color on hover

<div id="diagram"></div>
<script>
  $("#diagram").kendoDiagram({
    layout: "tree",
    shapeDefaults: {
      hover: {
        fill: {
          color: "pink"
        }
      }
    },
    shapes: [{
      id: "1",
      content: {
        text: "Monday"
      }
    }, {
      id: "2",
      content: {
        text: "Tuesday"
      }
    }, {
      id: "3",
      content: {
        text: "Wednesday"
      }
    }],
    connections: [{
      from: "1",
      to: "2"
    },{
      from: "2",
      to: "3"
    }],
    connectionDefaults: {
      endCap: "ArrowEnd"
    }
  });
</script>

shapeDefaults.hover.fill String|Object

Defines the hover fill options.

shapeDefaults.hover.fill.color String

Defines the hover fill color.

shapeDefaults.hover.fill.opacity Number (default: 1)

Defines the hover fill opacity.

In this article