echarts icon indicating copy to clipboard operation
echarts copied to clipboard

2.2.7版本中 雷达图的axisLabel中formatter 无效

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

2.2.7中 雷达图的axisLabel中的formatter好像不起作用 代码如下

polar: [
                                {
                                indicator : [
                                    {text : '资金', min:0,max:30,axisLabel:{show:true,formatter:'{value}%',textStyle:{fontSize:5}}},
                                    {text : '管理', min:0,max  : 30},
                                    {text : '研发', min:0,max  : 30},
                                    {text : '营销', min:0,max  : 30},
                                    {text : '环境', min:0,max  : 30},
                                    {text : '采供', min:0,max  : 30},
                                    {text : '设备', min:0,max  : 30},
                                    {text : '员工', min:0,max  : 30}
                                    ],
                                radius : 130
                                }
                            ],

最终效果就是原样输出字符串 '{value}%' 去掉formatter后数字就正常显示啦

R-River avatar Feb 22 '16 06:02 R-River

 formatter:function(value){
                return value + '%'
               }

亲测可用 ffffff

zhump avatar Feb 22 '16 06:02 zhump

@zhump 额 我是在直角系的axisLabel中直接 formatter:'{value}%'可以用 就在这里也这样用了 那我改一下 谢谢!

R-River avatar Feb 22 '16 06:02 R-River