apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.21k stars 19.6k forks source link

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

Closed HalfWater closed 4 years ago

HalfWater commented 6 years ago

One-line summary [问题简述]

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

Version & Environment [版本及环境]

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 [其他信息]

Ovilia commented 6 years ago

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

HalfWater commented 6 years ago

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

zhangsundf commented 6 years ago

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

stale[bot] commented 4 years ago

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.