Please see that attached. We have a few donut charts and want the labels on them. We have done what we can to reduce the size, but the labels and chart title still seem to get cut off (see attached pictures). This is in a responsive UI, and it seems the labels are not always counted when using the "$(this).data("kendoChart").redraw()" method.
$(
"#"
+ chartDiv).kendoChart({
title: {
text: chartName +
" "
+ chartLabel
},
legend: {
visible:
false
,
position:
"bottom"
},
seriesDefaults: {
type:
"donut"
,
startAngle: 150
},
theme: defaultTheme,
series: [{
name:
"Prior Period"
,
overlay: { gradient:
"none"
},
categoryField:
"Value.Description"
,
field:
"Value.Value"
,
tooltip: {
visible:
true
,
template:
"${dataItem.Value.Description} - ${dataItem.Value.FormattedValue} - Prior Period"
},
data: jsonPrior
}, {
name: labelDateRange,
overlay: { gradient:
"none"
},
categoryField:
"Value.Description"
,
field:
"Value.Value"
,
tooltip: {
visible:
true
,
template:
"${dataItem.Value.Description} - ${dataItem.Value.FormattedValue} - "
+ labelDateRange
},
data: jsonData,
labels: {
template:
"${dataItem.Value.Description} - ${dataItem.Value.FormattedValue}"
,
position:
"outsideEnd"
,
font:
"10px Arial,Helvetica,sans-serif"
,
align:
"circle"
,
visible:
true
,
distance: 15,
background:
"transparent"
},
}]
});