title Object
The Sankey title configuration options.
Example - Setting the title of the Sankey
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{ id: 1, label: { text: "Node 1" } },
{ id: 2, label: { text: "Node 2" } },
{ id: 3, label: { text: "Node 3" } }
],
links: [
{ sourceId: 1, targetId: 3, value: 2 },
{ sourceId: 2, targetId: 3, value: 1 }
]
},
title: {
align: "center",
background: "white",
border: { color: "red", dashType: "solid", width: 1 },
color: "black",
font: "16px Arial,Helvetica,sans-serif",
margin: { left: 0, right: 0 },
padding: { left: 5, right: 5 },
position: "top",
text: "Title",
visible: true
}
});
</script>
Related Properties
- title.align
- title.background
- title.border
- title.border.color
- title.border.dashType
- title.border.width
- title.color
- title.description
- title.font
- title.margin
- title.margin.bottom
- title.margin.left
- title.margin.right
- title.margin.top
- title.padding
- title.padding.bottom
- title.padding.left
- title.padding.right
- title.padding.top
- title.position
- title.text
- title.visible