echarts icon indicating copy to clipboard operation
echarts copied to clipboard

雷达图splitNumber数值的问题

Open chenxiwei7 opened this issue 10 years ago • 1 comments

问题简述 (One-line summary)

雷达图startAngle: 100,splitNumber: 2, 坐标轴显示的数字是50,100 如何让坐标轴的数字显示60,100

版本及环境 (Version & Environment)

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

重现步骤 (Steps to reproduce)

1.雷达图startAngle: 100,splitNumber: 2, 2.坐标轴显示的数字是50,100

期望结果 (Expected behaviour)

坐标轴的数字显示60,100

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

ECharts配置项 (ECharts option)

option = {
radar: [
                    {
                        indicator: [
                            { text: '温度', max: 100 },
                            { text: '湿度', max: 100 },
                            { text: '倾角', max: 100, axisLabel: { show: true,
                                textStyle: {
                                color:'#666666'
                            } } },
                            { text: '大气压', max: 100 },
                            { text: '海拔', max: 100 }
                        ],
                        center: ['25%', '35%'],
                        nameGap: 2,
                        radius: '30%',
                        startAngle: 100,
                        splitNumber: 2,
                        shape: 'circle',
                        name: {
                            formatter:'【{value}】',
                            textStyle: {
                                color:'#72ACD1'
                            }
                        },
                        splitArea: {
                            areaStyle: {
                                color: [
                                'rgba(114, 172, 209, 0.4)', 'rgba(114, 172, 209, 0.8)'],
                                shadowColor: 'rgba(0, 0, 0, 0.3)',
                                shadowBlur: 10
                            }
                        },
                        axisLine: {
                            lineStyle: {
                                color: 'rgba(255, 255, 255, 1)'
                            }
                        },
                        splitLine: {
                            lineStyle: {
                              width:1,
                              color: {type: 'default'} 
                            }
                        }
                    }
                ]
}

其他信息 (Other comments)

image

chenxiwei7 avatar Oct 14 '16 04:10 chenxiwei7

雷达图选择shape='polygon', 当splitNumber从小于6加到6时会报错,shape='circle'不会。看了下,是绘制的路径计算有问题

yangxiaolin avatar Dec 07 '16 01:12 yangxiaolin