折线图

描述:当前是关于Echarts图表中的 折线图 示例。
 
            
let label = ['08/01', '08/02', '08/03',' 08/04', '08/05', '08/06', '08/07',' 08/08']
let value = [233, 233, 200, 180, 199, 233, 210, 180]

option = {
    backgroundColor:"#101e44",
    grid: {
        top: 100,
        containLabel: true
    },
    tooltip: {
            trigger: 'axis',
            axisPointer: {
              lineStyle: {
                color: {
                  type: 'linear',
                  x: 0,
                  y: 0,
                  x2: 0,
                  y2: 1,
                  colorStops: [{
                    offset: 0,
                    color: 'rgba(255,255,255,0)' // 0% 处的颜色
                  }, {
                    offset: 0.5,
                    color: 'rgba(255,255,255,1)' // 100% 处的颜色
                  }, {
                    offset: 1,
                    color: 'rgba(255,255,255,0)' // 100% 处的颜色
                  }],
                  global: false // 缺省为 false
                }
              },
            },
          },
    xAxis: [{
        type: "category",
        boundaryGap: false,
        axisLabel: {
            formatter: '{value}',
            fontSize:14,
            margin:20,
            textStyle: {
                color: "#fff"
            }
        },
        axisLine: {
            lineStyle: {
                color: "#243753"
            }
        },
        splitLine: {
            show:false,
            lineStyle: {
                color: "#243753"
            }
        },
        axisTick:{
            show:false
        },
        data: label
    }],
    yAxis: [
        {
            boundaryGap:false,
            type: "value",
            axisLabel: {
                textStyle: {
                    color: "#fff"
                }
            },
            nameTextStyle: {
                color: "#fff",
                fontSize: 12,
                lineHeight: 40
            },
            splitLine: {
                lineStyle: {
                    color: "#243753"
                }
            },
            axisLine: {
                show: true,
                lineStyle:{
                    color:"#283352"
                }
            },
            axisTick: {
                show: false
            }
        }
    ],
    series: [{
        name: "活跃人数",
        type: "line",
        smooth: true,
        showSymbol: true,
        symbolSize: 8,
        zlevel: 3,
        itemStyle:{
            color:'#00F2FE',
            // borderColor:"#fff"
        },
        lineStyle: {
            normal: {
                width:3,
                color: "#00F2FE",
            }
        },
        areaStyle: {
            normal: {
                color: new echarts.graphic.LinearGradient(
                    0,
                    0,
                    0,
                    1,
                    [{
                            offset: 0,
                            color: "rgba(88,255,255,0.2)"
                        },
                        {
                            offset: 0.8,
                            color: "rgba(88,255,255,0)"
                        }
                    ],
                    false
                ),
            }
        },
        data: value
    }]
};