首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在extjs4雷达图中使用渲染器函数

如何在extjs4雷达图中使用渲染器函数
EN

Stack Overflow用户
提问于 2012-08-23 16:05:12
回答 1查看 372关注 0票数 0

我有一个带有4个雷达系列的雷达图,我想为每个类型使用渲染器函数。

我的示例代码是:

系列:[{ type:‘雷达’,

代码语言:javascript
运行
复制
    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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-24 07:43:29

如果有疑问,可以grep源代码。

在雷达图中永远不会调用renderer函数。看起来像是另一个文档错误。label.renderer函数会被调用,但它只适用于格式化显示文本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12087268

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档