我正在尝试创建一个图表面板,我的图表是饼图,图表只显示值和其他所有但没有颜色,如何或在何处为图表指定颜色。
border: 0,
items: [{
xtype: 'chart',
height: 400,
width: 800,
padding: '10 0 0 0',
style: 'background: #fff',
animate: true,
shadow: false,
store: store,
insetPadding: 40,
legend: {
field: 'task',
position: 'bottom',
boxStrokeWidth: 0,
labelFont: '12px Helvetica'
},
....
series: [{
type: 'pie',
angleField: 'durations',
label: {
field: 'task',
display: 'outside',
calloutLine: true
},
showInLegend: true,
highlight: {
segment: {
margin: 50
}
},
tips: {
trackMouse: true,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('task') + ': ' + storeItem.get('durations') + ' Days');
}
}
}]
}]
请协助......