Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs4饼图问题_Extjs_Charts_Extjs4_Pie Chart - Fatal编程技术网

Extjs4饼图问题

Extjs4饼图问题,extjs,charts,extjs4,pie-chart,Extjs,Charts,Extjs4,Pie Chart,我在使用Extjs4饼图时面临以下问题: 我无法更改饼图颜色 我想禁用图例不可单击 请帮帮我 谢谢使用配置更改饼图颜色很容易: 禁用legend的单击行为有点棘手,因为它内置于LegendItem组件中,并且没有关闭它的开关。您可以使用以下方法从Legend中删除这些令人不安的侦听器: Ext.each(chart.legend.items, function(item) { item.un("mousedown", item.events.mousedown.listeners[0].

我在使用Extjs4饼图时面临以下问题:

我无法更改饼图颜色 我想禁用图例不可单击 请帮帮我


谢谢

使用配置更改饼图颜色很容易:

禁用legend的单击行为有点棘手,因为它内置于LegendItem组件中,并且没有关闭它的开关。您可以使用以下方法从Legend中删除这些令人不安的侦听器:

Ext.each(chart.legend.items, function(item) {
    item.un("mousedown", item.events.mousedown.listeners[0].fn);
})

但我建议您向Sencha提交功能请求,因为这种内置行为应该是可配置的。

使用配置更改饼图颜色很容易:

禁用legend的单击行为有点棘手,因为它内置于LegendItem组件中,并且没有关闭它的开关。您可以使用以下方法从Legend中删除这些令人不安的侦听器:

Ext.each(chart.legend.items, function(item) {
    item.un("mousedown", item.events.mousedown.listeners[0].fn);
})

但是我建议你向Sencha提交一个功能请求,因为这种内置行为应该是可配置的。

我有疑问,如果你有聊天权限,我有疑问,如果你有聊天权限