不显示Extjs饼图详图索引线
我在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,
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的实现,并在项目中添加相同的实现。