echarts icon indicating copy to clipboard operation
echarts copied to clipboard

雷达图极坐标的axisLable问题

Open coralbells opened this issue 11 years ago • 5 comments

对单个indicator item设置axisLabel 的show 为true, 整个图都不显示了 option = { title : { text: '罗纳尔多 vs 舍普琴科', subtext: '完全实况球员数据' }, tooltip : { trigger: 'axis' }, legend: { x : 'center', data:['罗纳尔多','舍普琴科'] }, toolbox: { show : true, feature : { mark : {show: true}, dataView : {show: true, readOnly: false}, restore : {show: true}, saveAsImage : {show: true} } }, calculable : true,

polar : [
    {
        indicator : [
            {text : '1', max: 100,
                axisLabel: {
                       show: true,
                       color: '#ccc'
                  }
            },
            {text : '5', max: 100},
            {text : '4', max: 100},
            {text : '3', max: 100},
            {text : '2', max: 100}
        ]
    }
],
series : [
    {
        name: '完全实况球员数据',
        type: 'radar',
        itemStyle: {
            normal: {
                areaStyle: {
                    type: 'default'
                }
            }
        },
        data : [
            {
                value : [36,85, 47, 60, 12],
                name : '舍普琴科',
              symbol: 'star5',
                symbolSize: 0        // 可计算特性参数,空数据拖拽提示图形大小

            }]
    },
  {
      name: '完全实况球员数据2',
        type: 'radar',
    data:[
            {
                value : [47, 29, 6, 26, 85],
                name : '罗纳尔多'
            }
        ]
    }
]

};

coralbells avatar Nov 24 '15 06:11 coralbells

如果设成false, 图表显示没问题

coralbells avatar Nov 24 '15 06:11 coralbells

同问此情况 请问楼主解决问题了吗?

R-River avatar Feb 17 '16 01:02 R-River

axisLabel没有color属性 ,有textStyle可以设置颜色。 axisLabel:{ show: true, textStyle:{ color: '#ccc' } } 可以写成这样

xiaoz0 avatar Feb 23 '16 15:02 xiaoz0

还是不行,报错了。TypeError: axisModel.getCategories is not a function

zhyc18123 avatar Jul 27 '18 03:07 zhyc18123

This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.

echarts-bot avatar May 30 '19 08:05 echarts-bot