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

Accessibility

configuration

Defines accessibility options for the diagram.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    accessibility: {
        role: "graphics-document",
        ariaRoleDescription: "Interactive Diagram",
        ariaLabel: "Organization chart showing company structure"
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Shape 1" } },
        { id: "2", x: 300, y: 100, content: { text: "Shape 2" } }
    ],
    connections: [
        { from: "1", to: "2" }
    ]
});
</script>

The accessibility label of the diagram element.

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    accessibility: {
        ariaLabel: "Company organizational structure diagram"
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "CEO" } },
        { id: "2", x: 100, y: 200, content: { text: "CTO" } }
    ],
    connections: [
        { from: "1", to: "2" }
    ]
});
</script>

The accessibility role description of the diagram element.

Default: "Diagram"

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    accessibility: {
        ariaRoleDescription: "Flowchart"
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Start" } }
    ]
});
</script>

The accessibility role of the diagram element.

Default: "graphics-document"

<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    accessibility: {
        role: "img"
    },
    shapes: [
        { id: "1", x: 100, y: 100, content: { text: "Shape 1" } }
    ]
});
</script>