echarts icon indicating copy to clipboard operation
echarts copied to clipboard

请问3.1.3中 formatter的回调函数是否可以取到雷达图轴名称

Open R-River opened this issue 10 years ago • 4 comments

问题简述 (One-line summary)

2.2.7的雷达图中 params.name可以取到雷达图indicator的名称 在3.1.3中是不是没有这一项了?

2.2.7中

{Function},传递参数列表为[params,``` ticket, callback],详见下:
<Array> params : 数组内容同模板变量,
[
    {

        seriesIndex: 0,
        seriesName: '一周销量',
        name: '周一',
        dataIndex: 0,
        data: data,
        name: name,
        value: value,
        percent: special,       // 饼图
        indicator: special,     // 雷达图、力导向、和弦
        value2: special2,       // 力导向、和弦
        indicator2: special2    // 力导向、和弦
    },
    {..},
    ...
]

3.1.3中

第一个参数 params 是 formatter 需要的数据集。格式如下:
 {
     // 系列在传入的 option.series 中的 index
     seriesIndex: number,
     // 系列名称
     seriesName: string,
     // 数据名,类目名
     name: string,
     // 数据在传入的 data 数组中的 index
     dataIndex: number,
     // 传入的原始数据项
     data: Object,
     // 传入的数据值
     value: number|Array,

     // 饼图的百分比
     percent: number,

 }

可以看到 雷达图 力导向图 和弦图相关项没有了 请问是否会在后续更新中增添呢?谢谢!

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): 3.1.3
  • 浏览器类型和版本 (Browser version):
  • 操作系统类型和版本 (OS Version):

重现步骤 (Steps to reproduce)

期望结果 (Expected behaviour)

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {

}

其他信息 (Other comments)

R-River avatar Mar 16 '16 02:03 R-River

3.1.3 暂时还不支持 axis 类型的 trigger,所以 formatter 里包含了所有的 indicator

pissang avatar Mar 16 '16 03:03 pissang

谢谢 期待下次更新

R-River avatar Mar 16 '16 04:03 R-River

新版还不支持么?

riyuuli avatar May 13 '16 14:05 riyuuli

现在支持了么?

zyziyun avatar Sep 19 '17 10:09 zyziyun