echarts 8lines

option = {
  tooltip: {
    trigger: 'axis'
  },
  title: [
    {
          text: 'X轴最大变量',
          textAlign: 'center',
          left: '80%',
          top: '80%',
          textStyle: {
            fontSize: 100
          }
        },
        ],
  backgroundColor: new echarts.graphic.RadialGradient(0.3, 0.3, 0.8, [
    {
      offset: 0,
      color: '#f7f8fa'
    },
    {
      offset: 1,
      color: '#cdd0d5'
    }
  ]),
  grid: {
    left: '0%',
    right: '10%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    type: 'category',
    boundaryGap: false,
    splitLine: {
      show: true
    },
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', '']
  },
  yAxis: {
    type: 'value',
    axisLine: {
      show: true
    },
    splitLine: {
      show: true,
    }
  },
  series: [
    {
      name: 'Email',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [120, 132, 101, 134, 90, 230, 210]
    },
    {
      name: 'Union Ads',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [220, 182, 191, 234, 290, 330, 310]
    },
    {
      name: 'Video Ads',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [150, 232, 201, 154, 190, 330, 410]
    },
    {
      name: 'Direct',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [320, 332, 301, 334, 390, 330, 320]
    },
    {
      name: 'Search Engine',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [820, 932, 901, 934, 1290, 1330, 1320]
    },
    {
      name: 'Search Engine',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [820, 932, 901, 934, 1290, 1330, 1320]
    },
    {
      name: 'Search Engine',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [820, 932, 901, 934, 1290, 1330, 1320]
    },
    {
      name: 'Search Engine',
      type: 'line',
      smooth: true,
      endLabel:{
        show: true,
        formatter: '{a}{b}{c}',
      },
      data: [820, 932, 901, 934, 1290, 1330, 1320]
    },
  ]
};

  

posted @ 2022-06-24 10:08  CrossPython  阅读(19)  评论(0编辑  收藏  举报