我想将c3饼图的百分比标签旋转到90度。每个切片的百分比应旋转到90度 HTML:
$(document).ready(function () {
var radarchart = null;
(function () {
setTimeout(function () {
if (radarchart == null) {
c3.generate({
bindto: '#pie',
data:{
columns: [
['Draft', 30],
['In Review', 120],
['In Progress Review', 20],
['Review Completed', 15],
['Final', 50]
],
colors:{
'Draft': 'rgba(255, 99, 132, 0.9)',
'In Review': 'rgba(54, 162, 235, 0.9)',
'In Progress Review': 'rgba(255, 206, 86, 0.9)',
'Review Completed': 'rgba(46, 204, 113, 0.9)',
'Final': 'rgba(153, 102, 255, 0.9)'
},
type : 'pie'
}
});
} else {
radarchart.setData(sourceData);
}
}, 100)
})();
});
这是我的小提琴:https://codepen.io/uibeast/pen/abbXpbv 预先感谢。