Data.nodes.label.padding
configurationThe padding of the label.
data.nodes.label.padding
Number|Object<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{
id: 1,
label: {
text: "Padded Label",
padding: {
top: 5,
bottom: 5,
left: 10,
right: 10
},
border: {
color: "#ff6358",
width: 1
}
}
},
{ id: 2, label: { text: "Target Node" } }
],
links: [
{ sourceId: 1, targetId: 2, value: 10 }
]
}
});
</script>
The bottom padding of the label.
Default: 0
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{
id: 1,
label: {
text: "Bottom Padding",
padding: {
bottom: 8
},
border: {
color: "#ff6358",
width: 1
}
}
},
{ id: 2, label: { text: "Target Node" } }
],
links: [
{ sourceId: 1, targetId: 2, value: 10 }
]
}
});
</script>
The left padding of the label.
Default: 0
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{
id: 1,
label: {
text: "Left Padding",
padding: {
left: 12
},
border: {
color: "#ff6358",
width: 1
}
}
},
{ id: 2, label: { text: "Target Node" } }
],
links: [
{ sourceId: 1, targetId: 2, value: 10 }
]
}
});
</script>
The right padding of the label.
Default: 0
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{
id: 1,
label: {
text: "Right Padding",
padding: {
right: 12
},
border: {
color: "#ff6358",
width: 1
}
}
},
{ id: 2, label: { text: "Target Node" } }
],
links: [
{ sourceId: 1, targetId: 2, value: 10 }
]
}
});
</script>
The top padding of the label.
Default: 0
<div id="sankey" style="width: 500px; height: 200px;"></div>
<script>
$("#sankey").kendoSankey({
data: {
nodes: [
{
id: 1,
label: {
text: "Top Padding",
padding: {
top: 8
},
border: {
color: "#ff6358",
width: 1
}
}
},
{ id: 2, label: { text: "Target Node" } }
],
links: [
{ sourceId: 1, targetId: 2, value: 10 }
]
}
});
</script>