0
我有一個4雷達系列的雷達圖,我想爲每種類型使用渲染器功能。如何在extjs4雷達圖中使用渲染器功能
我的示例代碼是:
系列:[{ 類型: '雷達',
xField: 'name',
yField: 'data3',
renderer: function(storeItem, item, i, display){
alert(storeItem)
},
showInLegend: true,
showMarkers : false,
markerConfig: {
radius: 5,
size: 5
},
style: {
'stroke-width': 2,
stroke : '#FFF',
fill: 'none'
}
},{
type: 'radar',
xField: 'name',
yField: 'data2',
showMarkers: true,
showInLegend: true,
markerConfig: {
radius: 5,
size: 5
},
style: {
'stroke-width': 2,
stroke : '#FF0',
fill: 'none'
}
},{
type: 'radar',
xField: 'name',
yField: 'data5',
showMarkers: true,
showInLegend: true,
markerConfig: {
radius: 5,
size: 5
},
style: {
'stroke-width': 2,
stroke : '#0FF',
fill: 'none'
}
}]
在何處添加renderere功能?我嘗試添加所有可能的方式,但它不起作用。 我在做任何錯誤嗎?或者該功能不適用於雷達圖表? 請讓我知道 即時通訊使用extjs4.1.0