2012-08-23 24 views
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

回答

0

當有疑問時,grep的來源。

renderer函數從未在雷達圖表中調用過。看起來像另一個文檔錯誤。 label.renderer函數被調用,但它僅適用於格式化顯示文本。

相關問題