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