我面临以下 Extjs4饼图的问题:
请帮帮我..
感谢
答案 0 :(得分:4)
使用colorSet配置:
可以轻松更改饼图颜色series: [{
type: "pie",
colorSet: ["#f00", "#0f0", "#00f"],
...
}]
禁用图例的点击行为相当棘手,因为它内置于LegendItem组件中,并且没有开关可以将其关闭。您可以使用以下hack从Legend中删除令人不安的听众:
Ext.each(chart.legend.items, function(item) {
item.un("mousedown", item.events.mousedown.listeners[0].fn);
})
但我建议您向Sencha提交功能请求,因为这种内置行为应该是可配置的。