lineTemplate1 = { title:{ text:"输入标题", textStyle:{ color:'#fff', fontStyle:'normal', fontWeight:'bold', fontFamily:'sans-serif',      fontSize:12 } }, textStyle:{ fontFamily: "Microsoft YaHei", fontSize: 9, fontStyle: "normal", fontWeight: "normal", color: '#fff' }, tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(0, 255, 233,0)' }, { offset: 0.5, color: 'rgba(255, 255, 255,1)', }, { offset: 1, color: 'rgba(0, 255, 233,0)' }], global: false } }, }, }, grid: { top:40, left:0, bottom:20, right:30, containLabel: true }, legend: { data: ['系列1', '系列2'], bottom: 0, textStyle: { color: "#fff", fontSize:9 }, itemWidth: 10, itemHeight: 10, itemGap: 35 }, xAxis: [{ type: 'category', axisLine: { show: false, color:'#A582EA' }, axisLabel: { color: '#fff', width:100, fontSize:9, }, splitLine: { show: false }, boundaryGap: false, data: ["类别1","类别2","类别3","类别4","类别5"]//this.$moment(data.times).format("HH-mm") , }], yAxis: [{ name:'单位:', nameTextStyle:{ color:'#fff', fontSize:9, padding:[0, 30, -10, 0] }, type: 'value', min: 0, // max: 140, splitNumber: 4, splitLine: { show: true, lineStyle: { color: '#fff', opacity:0.23 } }, axisLine: { show: false, }, axisLabel: { fontSize:9, show: true, margin: 20, color: '#fff', }, axisTick: { show: false, }, }], series: [ { name:'系列1', type: 'line', showAllSymbol: true, symbol: 'circle', symbolSize: 8, lineStyle: { normal: { color: "#A582EA", }, }, //显示点上方文字 // label: { // show: true, // position: 'top', // textStyle: { // color: '#A582EA', // } // }, itemStyle: { color: "#fff", borderColor: "#A582EA", borderWidth: 2, }, areaStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: 'rgba(43,193,145,0.3)' }, { offset: 1, color: 'rgba(43,193,145,0)' } ], false), } }, data: [4,7,5,4,3] }, { name:'系列2', type: 'line', showAllSymbol: true, symbol: 'circle', symbolSize: 8, lineStyle: { normal: { color: "#2CABE3", }, }, // label: { // show: true, // position: 'top', // textStyle: { // color: '#2CABE3', // } // }, itemStyle: { color: "#fff", borderColor: "#2CABE3", borderWidth: 2, }, areaStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: 'rgba(81,150,164,0.3)' }, { offset: 1, color: 'rgba(81,150,164,0)' } ], false), } }, data: [3,5,4,2,1] }, ] }; lineTemplate1Series=[ { name:'', type: 'line', showAllSymbol: true, symbol: 'circle', symbolSize: 8, lineStyle: { color: "#A582EA", // normal: { // color: "#A582EA", // }, }, //显示点上方文字 // label: { // show: true, // position: 'top', // textStyle: { // color: '#A582EA', // } // }, itemStyle: { color: "#fff", borderColor: "#A582EA", borderWidth: 2, }, areaStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: 'rgba(43,193,145,0.3)' }, { offset: 1, color: 'rgba(43,193,145,0)' } ], false), } }, data: [] }, { name:'', type: 'line', showAllSymbol: true, symbol: 'circle', symbolSize: 8, lineStyle: { color: "#2CABE3", // normal: { // color: "#2CABE3", // }, }, itemStyle: { color: "#fff", borderColor: "#2CABE3", borderWidth: 2, }, areaStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, color: 'rgba(81,150,164,0.3)' }, { offset: 1, color: 'rgba(81,150,164,0)' } ], false), } }, data: [] }, ]