echarts图的实现

option = {
    color: ['#3398DB'],
    grid: {
        bottom: '8%',
        containLabel: true
    },
    tooltip: {
        trigger: 'item',
        axisPointer: { // 坐标轴指示器,坐标轴触发有效
            type: 'line' // 默认为直线,可选为:'line' | 'shadow'
        }
    },
    title: {
        text: '9999'
    },
    xAxis: [{
        type: 'category',
        axisTick: {
            alignWithLabel: false
        },
        "axisLabel": {
            "interval": 0,
            "rotate": -90,
            "show": true,
            "splitNumber": 15,
            "textStyle": {
                "fontFamily": "微软雅黑",
                "fontSize": 12
            }
        },
        data: ["四川省", "河南省", "湖北省", "山西省", "江西省", "河南省", "四川省", "江西省", "甘肃省", "四川省", "甘肃省", "云南省", "四川省", "甘肃省", "云南省", "四川省", "湖北省", "河南省", "甘肃省", "四川省", "云南省", "四川省", "甘肃省", "贵州省", "四川省", "云南省", "河南省", "四川省", "河南省", "江西省", "江西省", "四川省", "云南省", "甘肃省", "四川省", "湖北省"]
    }, {
        position: 'bottom',
        offset: 80,
        axisLine: {
            onZero: false,
            show: false
        },
        axisTick: {
            length: 0,
            inside: true,
            interval: 0
            //lineStyle: {
                //color: '#f00',
                //fontSize: '14px'
            //}
        },
        axisLabel: {
            inside: true
        },
        data: ["三焦经", "大肠经", "小肠经", "心包经", "心经", "肝经", "肺经", "肾经", "胃经", "胆经", "脾经", "膀胱经"]
    }],
    yAxis: [{
        type: 'value',
        //title: '9999'
    }],
    series: [{
            type: 'bar',
            barWidth: '60%',
            data: [108, 107, 82, 18, 17, 13, 44, 20, 19, 20, 19, 15, 46, 28, 22, 85, 48, 42, 96, 71, 35, 12, 6, 3, 83, 69, 57, 46, 43, 35, 20, 8, 6, 107, 100, 66],

            
        },
        {
            type: 'line',
            barWidth: '60%',
            symbol: 'circle',

            itemStyle: {
                color: 'red'
            },
            label: {
                normal: {
                    show: true,
                    position: 'top',
                    textStyle: {
                        color: "red",
                        fontSize: 15
                    }
                }
            },
            data: [108, 107, 82, 18, 17, 13, 44, 20, 19, 20, 19, 15, 46, 28, 22, 85, 48, 42, 96, 71, 35, 12, 6, 3, 83, 69, 57, 46, 43, 35, 20, 8, 6, 107, 100, 66],

        }
    ]
};

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值