多柱状图

多 柱 状 图 多柱状图

selectedMode: 'single',


axisLabel:{
      color:"white",
  },
option = {
    legend: {
        //selectedMode: 'single',
        data: ['个性化健康', '市场护理', '政府供给', '娱乐康复','心理咨询', '床位数', '社区服务', '8'],
       
    },
    xAxis: {
        type: 'category',
        data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月','八月','九月','十月','十一月','十二月']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        
    {
        name: "个性化健康",
        barWidth : 8,
        data: [20, 200, 150, 80, 70, 110, 130,15,4,316,21,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
    
    {
        name: "市场护理",
        barWidth : 8,
        data: [10, 200, 150, 80, 70, 110, 130,25,54,36,121,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
        {
        name: "政府供给",
        barWidth : 8,
        data: [120, 100, 150, 80, 70, 110, 130,125,25,136,21,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
    {
        name: "娱乐康复",
        barWidth : 8,
        data: [150, 200, 150, 180, 170, 110, 10,225,54,36,221,331],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "心理咨询",    
        barWidth : 8,
        data: [128, 200, 50, 80, 70, 110, 130,125,254,36,211,313],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "床位数",    
        barWidth : 8,
        data: [120, 20, 150, 80, 70, 110, 30,125,254,36,121,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "社区服务",   
        barWidth : 8,
        data: [120, 200, 150, 80, 70, 10, 130,125,254,316,121,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "8",  
        barWidth : 8,
        data: [120, 20, 150, 80, 70, 110, 30,125,254,36,21,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
    
    ]
};

在这里插入图片描述

多柱状图单选模式

option = {
    legend: {
        selectedMode: 'single',
        data: ['个性化健康', '市场护理', '政府供给', '娱乐康复','心理咨询', '床位数', '社区服务', '8'],
       
    },
    xAxis: {
        type: 'category',
        data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月','八月','九月','十月','十一月','十二月']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        
    {
        name: "个性化健康",
        barWidth : 8,
        data: [20, 200, 150, 80, 70, 110, 130,15,4,316,21,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
    
    {
        name: "市场护理",
        barWidth : 8,
        data: [10, 200, 150, 80, 70, 110, 130,25,54,36,121,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
        {
        name: "政府供给",
        barWidth : 8,
        data: [120, 100, 150, 80, 70, 110, 130,125,25,136,21,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
    {
        name: "娱乐康复",
        barWidth : 8,
        data: [150, 200, 150, 180, 170, 110, 10,225,54,36,221,331],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "心理咨询",    
        barWidth : 8,
        data: [128, 200, 50, 80, 70, 110, 130,125,254,36,211,313],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "床位数",    
        barWidth : 8,
        data: [120, 20, 150, 80, 70, 110, 30,125,254,36,121,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "社区服务",   
        barWidth : 8,
        data: [120, 200, 150, 80, 70, 10, 130,125,254,316,121,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    {
        name: "8",  
        barWidth : 8,
        data: [120, 20, 150, 80, 70, 110, 30,125,254,36,21,33],
        type: 'bar',
        showBackground: true,
        backgroundStyle: {
            color: 'rgba(220, 220, 220, 0.8)'
        }
    },
    
    
    ]
};

在这里插入图片描述

option = {
    title: {
        text: '',
        subtext: ''
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    legend: {
        data: ['2011年', '2012年']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: {
        type: 'value',
        boundaryGap: [0, 0.01]
    },
    yAxis: {
        type: 'category',
        data: ['助餐', '助洁', '助浴', '助医', '助行', '健康指导','康复护理','代办']
    },
    series: [
        {
            name: '2011年',
            type: 'bar',
            data: [182, 249, 294, 70, 144, 630,220,332]
        },

    ]
};

在这里插入图片描述

option = {
    color: ['#3398DB'],
    tooltip: {
        trigger: 'axis',
        axisPointer: {            // 坐标轴指示器,坐标轴触发有效
            type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
        }
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: [
        {
            type: 'category',
            data: ['一星', '二星', '三星', '四星', '五星'],
            axisTick: {
                alignWithLabel: true
            }
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    series: [
        {
            name: '直接访问',
            type: 'bar',
            barWidth: '60%',
            data: [10, 52, 200, 334, 390]
        }
    ]
};

在这里插入图片描述

option = {
    title: {
        text: '总评星趋势'
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            label: {
                backgroundColor: '#6a7985'
            }
        }
    },
    legend: {
        data: ['制度建设', '服务能力', '服务实施', '投诉管理', '硬件评价']
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: [
        {
            type: 'category',
            boundaryGap: false,
            data: ['前七月', '前六月', '前五月', '前四月', '前三月', '前二月', '前一月']
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    series: [
        {
            name: '制度建设',
            type: 'line',
            stack: '总量',
            areaStyle: {},
            data: [1, 1, 1, 3, 9, 0, 2]
        },
        {
            name: '服务能力',
            type: 'line',
            stack: '总量',
            areaStyle: {},
            data: [2, 1, 1, 4, 0, 3, 3]
        },
        {
            name: '服务实施',
            type: 'line',
            stack: '总量',
            areaStyle: {},
            data: [1, 1, 1, 3, 9, 0, 2]
        },
        {
            name: '投诉管理',
            type: 'line',
            stack: '总量',
            areaStyle: {},
            data: [1, 1, 1, 3, 9, 0, 2]
        },
        {
            name: '硬件评价',
            type: 'line',
            stack: '总量',
            label: {
                normal: {
                    show: true,
                    position: 'top'
                }
            },
            areaStyle: {},
            data: [1, 1, 1, 3, 9, 0, 2]
        }
    ]
};

在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值