5
我正在使用Telerik Kendo餅圖,我希望能夠爲楔塊着色。如何彩色Telerik Kendo UI餅圖楔?
以下是標記爲我的劍道UI餅圖:
<script type="text/javascript">
function createChart() {
jQuery("#chart").kendoChart({
theme: jQuery(document).data("kendoSkin") || "Metro",
legend: {
position: "bottom"
},
seriesDefaults: {
labels: {
visible: true,
format: "{0}%"
}
},
series: [{
type: "pie",
data: [{
category: "Remaining Work",
value: 75,
explode: true
}, {
category: "CIOs",
value: 2
}, {
category: "Other Executives",
value: 10
}, {
category: "Directors and Physicians",
value: 13
}]
}],
tooltip: {
visible: true,
format: "{0}%"
}
});
}
jQuery(document).ready(function() {
setTimeout(function() {
createChart();
// Initialize the chart with a delay to make sure
// the initial animation is visible
}, 400);
jQuery(document).bind("kendo:skinChange", function (e) {
createChart();
});
});
</script>
我想剩下的工作是淺灰色。我該如何做到這一點?
任何建議,將不勝感激。