Echarts中属性areaStyle折线图线下方区域颜色修改

option = {
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line',
        areaStyle: {
            color:'red',
            opacity: 0.3,
            origin:"start"
        }
    }]
};

 

 

 

posted @ 2023-06-11 13:13  JackieDYH  阅读(197)  评论(0编辑  收藏  举报  来源