legend.padding Number|Object
(default: 5)
The padding of the chart legend. A numeric value will set all paddings.
Example - set the chart legend padding as a number
<div id="chart"></div>
<script>
$("#chart").kendoChart({
legend: {
padding: 20
},
series: [
{ name: "Series 1", data: [1, 2, 3] },
{ name: "Series 2", data: [3, 4, 5] }
]
});
</script>
legend.padding.bottom Number
(default: 0)
The bottom padding of the chart legend.
Example - set the chart legend bottom padding
<div id="chart"></div>
<script>
$("#chart").kendoChart({
legend: {
padding: {
bottom: 20
}
},
series: [
{ name: "Series 1", data: [1, 2, 3] },
{ name: "Series 2", data: [3, 4, 5] }
]
});
</script>
legend.padding.left Number
(default: 0)
The left padding of the chart legend.
Example - set the chart legend left padding
<div id="chart"></div>
<script>
$("#chart").kendoChart({
legend: {
padding: {
left: 20
}
},
series: [
{ name: "Series 1", data: [1, 2, 3] },
{ name: "Series 2", data: [3, 4, 5] }
]
});
</script>
legend.padding.right Number
(default: 0)
The right padding of the chart legend.
Example - set the chart legend right padding
<div id="chart"></div>
<script>
$("#chart").kendoChart({
legend: {
padding: {
right: 20
}
},
series: [
{ name: "Series 1", data: [1, 2, 3] },
{ name: "Series 2", data: [3, 4, 5] }
]
});
</script>
legend.padding.top Number
(default: 0)
The top padding of the chart legend.
Example - set the chart legend top padding
<div id="chart"></div>
<script>
$("#chart").kendoChart({
legend: {
padding: {
top: 20
}
},
series: [
{ name: "Series 1", data: [1, 2, 3] },
{ name: "Series 2", data: [3, 4, 5] }
]
});
</script>