import * as echarts from 'echarts' export function lineOption () { return { legend: { textStyle: { color: '#D2E7FF', fontSize: 16, }, itemWidth: 20, itemHeight: 10, // top: 350, bottom: 0, data: [] }, xAxis: { type: 'category', // boundaryGap: false, axisLabel: { color: '#8ec7dc', fontSize: 16 }, axisTick: { show: false }, axisLine: { lineStyle: { color: '#0c4b59' } } }, yAxis: { nameTextStyle: { color: '#8ec7dc', fontSize: 18 }, splitNumber: 4, minInterval: 1, show: true, type: 'value', axisLabel: { color: '#8ec7dc', fontSize: 18 }, axisTick: { show: false }, splitLine: { lineStyle: { color: ['#145968'], type: 'dotted' } }, axisLine: { show: true, symbol: ['none', 'arrow'], symbolOffset: [0, 15], lineStyle: { color: '#0c4b59' } } }, series: [ // { // name: '项目数', // type: 'line', // barWidth: 15, // areaStyle: {}, // itemStyle: { // color: new echarts.graphic.LinearGradient( // 0, 1, 0, 0, // [ // { offset: 0, color: 'rgba(121, 55, 255, 0)' }, // { offset: 1, color: '#6339FF' } // ] // ) // }, // data: [120, 132, 101, 134, 90, 230, 210] // }, // { // data: [820, 932, 901, 934, 1290, 1330, 1320], // type: 'line', // areaStyle: {} // } ] } }