highchars蜘蛛网图---多层蛛网---最大值在最外层网

效果图

HTML中引入的其中的highcharts.js和highcharts-more.js都是从官网实例中保存,设置tickInterval刻度间隔后,最大值及在最外层蛛网处
https://www.hcharts.cn/demo/highcharts/polar-spider

<script src="js/highcharts.js"></script>
<script src="js/highcharts-more.js"></script>

<div id="container02" style="height: 250px;margin: 20px auto"></div>
Highcharts.chart('container02', {
        chart: {
            polar: true,
            type: 'area'
        },
        title: {
            text: '',
            x: -80
        },
        pane: {
            size: '80%'
        },
        xAxis: {
            categories: ['技术/职能型', '综合管理型', '自主/独立型', '安全/稳定型',
                '创业创新型', '服务/奉献型', '纯粹挑战型', '生活方式型'],
            tickmarkPlacement: 'on',
            lineWidth: 0
        },
        credits: {
            enabled: false // 禁用版权信息
        },
        yAxis: {
            gridLineInterpolation: 'polygon',
            lineWidth: 0,
            min: 0,
            max: 25,
            tickInterval: 5  //设置刻度间隔
        },
        tooltip: {
            shared: true,
            pointFormat: '<span style="color:{series.color}">{series.name}: <b>{point.y:,.0f}</b><br/>'
        },
        legend: {
            align: 'right',
            verticalAlign: 'top',
            y: 50,
            layout: 'vertical'
        },
        series: [{
            showInLegend: false,
            name: '',
            data: [4, 20, 9, 15, 17, 5, 13, 25],
            pointPlacement: 'on'
        }]
    });

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值