echarts icon indicating copy to clipboard operation
echarts copied to clipboard

雷达图是否能显示单个或者多个轴上的刻度标尺

Open HalfWater opened this issue 8 years ago • 4 comments

One-line summary [问题简述]

无法在雷达图的轴上面像极坐标一样显示标尺刻度

Version & Environment [版本及环境]

  • ECharts version [ online latest ]:
  • Browser version [ Chrome 63.0.3239.132 ]:
  • OS Version [ Windows 7 ]:

Expected behaviour [期望结果]

能够在每个轴上显示标尺刻度

ECharts option [ECharts配置项]

option = {
 polar : [
                {
                    indicator : [
                        {text : '个人情况\n满分15', max  : 15},
                        {text : '信用记录\n满分35', max  : 35},
                        {text : '经济实力\n满分30', max  : 30},
                        {text : '稳定情况\n满分15', max  : 15},
                        {text : '贷款情况\n满分25', max  : 25},
                        {text : '工作情况\n满分30', max  : 30},
                        {text : '家庭情况\n满分15', max  : 15},
                        {text : '保障情况\n满分15', max  : 15}
                        
                    ],
                    radius : 130,
                    splitNumber : 10
                }
            ],
            series : [
                {
                    type: 'radar',
                    data : [
                        {
                            value : [10,22,20,10,16,15,10,12,15],
							label: {
								normal: {
									show: true
								}
							}
                        }
                    ]
                }
            ]


}

Other comments [其他信息]

HalfWater avatar Feb 08 '18 05:02 HalfWater

可以的,你不要设置 polar,而应该设置 radar.axisTick

Ovilia avatar Feb 08 '18 05:02 Ovilia

使用radar之后,的确显示了标尺刻度,但是每个标尺代表多长,是否能显示,就如普通坐标轴上每个刻度的值一样。

HalfWater avatar Feb 09 '18 09:02 HalfWater

可以设置,但是echarts4中不支持这个属性,3版本可以,在polar底下设置属性axisLabel.show为true就可以显示每圈大概多少

zhangsundf avatar Aug 03 '18 09:08 zhangsundf

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 02 '20 17:08 stale[bot]