zoukankan      html  css  js  c++  java
  • echarts折线图阴影发光效果

    1、先上效果图

    2、具体的option代码

    option = {
            backgroundColor: '#035254',
            // color:'#ff8000',
            title: {
                text: '折线图堆叠'
            },
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                data: ['邮件营销', '视频广告', '直接访问']
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            toolbox: {
                feature: {
                    saveAsImage: {}
                }
            },
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
                axisLine: {
                    symbolSize: [12, 12],
                    lineStyle: {
                        color: "#78abff"
                    }
                }
            },
            yAxis: {
                type: 'value',
                axisLine: {
                    symbolSize: [12, 12],
                    lineStyle: {
                        color: "#78abff"
                    }
                }
            },
            series: [
                {
                    name: '邮件营销',
                    type: 'line',
                    stack: '总量',
                    symbol: 'circle',//折线点设置为实心点
                    symbolSize: 12,   //折线点的大小
                    smooth: true,
                    data: [120, 132, 101, 134, 90, 230, 210],
                    itemStyle: {
                        color: '#5cfbff',
                        shadowColor: '#5cfbff',
                        shadowBlur: 20,
                    },
                    lineStyle: {
                        shadowColor: "#5cfbff",
                        shadowOffsetX: 0,
                        shadowOffsetY: 0,
                        opacity: 1,
                        shadowBlur: 8,
                        type: "solid",
                         4
                    },
    
                },
                {
                    name: '视频广告',
                    type: 'line',
                    smooth: true,
                    stack: '总量',
                    symbol: 'circle',//折线点设置为实心点
                    symbolSize: 12,   //折线点的大小
                    data: [150, 232, 201, 154, 190, 330, 410],
                    itemStyle: {
                        color: '#ecf390',
                        shadowColor: '#ecf390',
                        shadowBlur: 9.5,
                    },
                    lineStyle: {
                        shadowColor: "#ecf390",
                        shadowOffsetX: 0,
                        shadowOffsetY: 0,
                        opacity: 1,
                        shadowBlur: 8,
                        type: "solid",
                         4,
                    },
    
    
                },
                {
                    name: '直接访问',
                    type: 'line',
                    stack: '总量',
                    smooth: true,
                    symbol: 'circle',//折线点设置为实心点
                    symbolSize: 12,   //折线点的大小
                    data: [320, 332, 301, 334, 390, 330, 320],
                    itemStyle: {
                        color: '#bbffce',
                        shadowColor: '#9bfeff',
                        shadowBlur: 9.5,
                    },
                    lineStyle: {
                         4,
                        shadowColor: "#bbffce",
                        shadowOffsetX: 0,
                        shadowOffsetY: 0,
                        opacity: 1,
                        shadowBlur: 8,
                        type: "solid"
                    },
                },
    
            ]
        };
  • 相关阅读:
    Lc112_路径总和
    多线程(4)
    Lc257_二叉树的所有路径
    Lc226_翻转二叉树
    Lc145_二叉树的后序遍历
    Lc144_二叉树的前序遍历
    Lc102_二叉树的层序遍历
    Lc101_对称二叉树
    Lc100_相同的树
    Lc94_二叉树的中序遍历
  • 原文地址:https://www.cnblogs.com/lgnblog/p/13475969.html
Copyright © 2011-2022 走看看