多柱狀圖

多 柱 狀 圖 多柱狀圖 多柱狀圖

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]
        }
    ]
};

在這裏插入圖片描述

相關文章
相關標籤/搜索