折线图

描述:当前是关于Echarts图表中的 折线图 示例。
 
            let seriesData = [
   [150, 230, 224, 218, 135, 147, 240, 135, 147],
   [100, 130, 124, 118, 35, 100, 160, 130, 124]
]
let nameData = ["男", "女"]
let total = 1
let title = "消费者购买力分布(当年)"
let unitName = "单位:万元"
let axisData = [
   "1/16",
   "1/23",
   "1/30",
   "2/06",
   "2/13",
   "2/20",
   "2/26",
   "3/02",
   "3/09"
]
option = {
   //你的代码
   backgroundColor: '#031a40',
   color: ["#95F204", "#61A5E8"],
   xAxis: {
      type: "category",
      axisLine: {
         lineStyle: {
            width: 1,
            color: "#707070"
         }
      },
      axisTick: {
         show: false
      },
      splitLine: {
         show: false
      },
      axisLabel: {
         textStyle: {
            fontSize: 19.5,
            color: "#fff"
         }
      },
      data: axisData
   },
   yAxis: {
      type: "value",
      axisLine: {
         lineStyle: {
            color: "#707070"
         }
      },
      axisTick: {
         show: false
      },
      splitLine: {
         show: false
      },
      axisLabel: {
         textStyle: {
            fontSize: 19.5,
            color: "#fff"
         }
      }
   },
   grid: {
      left: "5%",
      top: "5%",
      right: "5%",
      bottom: "7%"
   },
   series: [
      {
         data: seriesData[0],
         type: "line",
         showSymbol: false,
         markLine: {
            symbol: "none",
            itemStyle: {
               normal: {
                  label: {
                     // 150动态取值
                     position: "insideEndTop",
                     color: "#fff",
                     fontSize: 19.5,
                     fontFamily: "Source Han Sans CN",
                     fontWeight: 'medium',
                     formatter: "过站平均时长" + 150 + "min"
                  }
               }
            },
            data: [{ type: "average", name: "平均值" }]
         }
      },
      {
         data: seriesData[1],
         type: "line",
         showSymbol: false,
         markLine: {
            symbol: "none",
            itemStyle: {
               normal: {
                  label: {
                     // 150动态取值,
                     position: "insideEndBottom",
                     color: "#fff",
                     fontSize: 19.5,
                     fontFamily: "Source Han Sans CN",
                     fontWeight: 'medium',
                     formatter: "保障平均时长" + 90 + "min"
                  }
               }
            },
            data: [{ type: "average", name: "平均值" }]
         }
      }
   ]
};