鍍金池/ 問答/Java  PHP  Python  HTML/ echart雷達(dá)圖,有多個(gè)刻度,怎么只顯示一個(gè)刻度,如下圖代碼

echart雷達(dá)圖,有多個(gè)刻度,怎么只顯示一個(gè)刻度,如下圖代碼

如圖,各數(shù)據(jù)的最大值都是100,怎么只顯示紅色框的刻度,

clipboard.png

代碼

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <!-- 引入 echarts.js -->
    <!--<script src="js/echarts.js"></script>-->
</head>
<body>
<!-- 為ECharts準(zhǔn)備一個(gè)具備大?。▽捀撸┑腄om -->
<div id="main" style="width: 600px;height:400px;"></div>
<script src="https://cdn.bootcss.com/echarts/3.8.4/echarts.js"></script>
<script type="text/javascript">
    // 基于準(zhǔn)備好的dom,初始化echarts實(shí)例
    var myChart = echarts.init(document.getElementById('main'));

    // 指定圖表的配置項(xiàng)和數(shù)據(jù)
    option = {
        title: {
            text: '知識(shí)點(diǎn)得分率',
            left: 'center'
        },
        tooltip: {},
        legend: {
            data: ['劉德華', '班級(jí)平均'],
            bottom: 0
        },
        radar: {
//             shape: 'circle',
            indicator: [
                { name: '實(shí)數(shù)', max: 100},
                { name: '代數(shù)', max: 100},
                { name: '整數(shù)', max: 100},
                { name: '分?jǐn)?shù)', max: 100},
                { name: '分式', max: 100},
            ],
            radius: 120,
            axisLabel:{
                show:true,
                color:'#333',
                showMinLabel: false
            },
        },
        series: [{
            name: '預(yù)算 vs 開銷',
            type: 'radar',
//             areaStyle: {normal: {}},
            data : [
                {
                    value : [50, 70, 88, 95, 50, 19],
                    name : '劉德華',
//                    label: {
//                        normal: {
//                            show: true
//                        }
//                    }
                },
                {
                    value : [50, 84, 58, 71, 42, 81],
                    name : '班級(jí)平均',
//                    label: {
//                        normal: {
//                            show: true
//                        }
//                    }
                }
            ]
        }],
        color:['#fa610e','#00aaee']
    };

    // 使用剛指定的配置項(xiàng)和數(shù)據(jù)顯示圖表。
    myChart.setOption(option);
</script>
</body>
</html>
回答
編輯回答
愚念

indicator那里,不想顯示axisLabel的就加一個(gè)屬性:axisLabel:{show:false}
比如:

...
indicator: [
                { name: '實(shí)數(shù)', max: 100},
                { name: '代數(shù)', max: 100, axisLabel:{show:false}},
                { name: '整數(shù)', max: 100, axisLabel:{show:false}},
                { name: '分?jǐn)?shù)', max: 100, axisLabel:{show:false}},
                { name: '分式', max: 100, axisLabel:{show:false}},
            ],
...
2017年4月19日 01:05