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
不显示Extjs饼图详图索引线_Extjs_Charts_Pie Chart - Fatal编程技术网

不显示Extjs饼图详图索引线

不显示Extjs饼图详图索引线,extjs,charts,pie-chart,Extjs,Charts,Pie Chart,我在extjs中创建了一个饼图,但没有显示详图索引线,请参见以下屏幕截图和代码: 这是我真正的馅饼: 这就是我想要的: 这是我的代码: Ext.create('Ext.chart.Chart', { renderTo: 'infos2', width: 500, height: 300, animate: true, store: store2,

我在extjs中创建了一个饼图,但没有显示详图索引线,请参见以下屏幕截图和代码:

这是我真正的馅饼:

这就是我想要的:

这是我的代码:

Ext.create('Ext.chart.Chart', {
             renderTo: 'infos2',
             width: 500,
             height: 300,
             animate: true,
             store: store2,
             series: [
             {
               type: 'pie',
               highlight: {
                   segment: {
                     margin: 20
                   }
                 },
               field: 'population',
               label: {
                 field: 'state',
                 display: 'outside',
                 font: '12px Arial',
                 calloutLine: {
                        width: 5,
                        length: 30
                 }
               }
             }
             ]
          });

根据Yellen的评论,Callout Line已经添加到extjs的4.2.2版本中

什么是ext版本?我认为Callout Line只是在4.2版本中添加的。2@Yellen好的,没有其他方法做同样的工作了?我必须升级我的版本?如果升级不是一个选项,那么您可以检查Callout Line的实现,并在项目中添加相同的实现。