import * as echarts from 'echarts' export function lineOption () { return { tooltip: { trigger: 'axis', axisPointer: { type: 'cross', label: { backgroundColor: '#6a7985' } } }, 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', smooth: true, 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: [820, 932, 901, 934, 1290, 1330, 1320], // type: 'line', // areaStyle: {} // } ] } }