折线图

折 线 图 折线图 线

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

你可能感兴趣的:(折线图)