function fwke(){ let MothData = ['2019','2020','2021','2022','2023'] let color = ['rgb(210,150,65)','rgb(60,168,168)','rgb(47,71,91)'] option1 = { legend: { icon: 'circle', textStyle: { color: '#fff', }, }, xAxis: { type: 'category', data: MothData, axisLine: { show: true, lineStyle: { color: "#fff", }, }, axisTick: { show: false } }, yAxis: { type: 'value', axisLine: { //x轴线的颜色以及宽度 show: false, }, axisTick: { show: false, }, axisLabel: { //x轴文字的配置 show: true, textStyle: { color: "#fff", }, }, splitLine: { //分割线配置 show: true, lineStyle: { color: "#195DCD80", }, }, }, grid: { top: '15%', //相当于距离左边效果:padding-left left: '10%', //相当于距离上边效果:padding-top bottom: '10%', right: '0%', // containLabel: true }, series: { name:'服务客户数量', data: [150, 230, 224, 218, 135, 147, 260], symbol: "none", type: 'line', color:'#11A3FC', areaStyle: {//区域填充渐变颜色 color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: '#11A3FC'// 0% 处的颜色 }, { offset: 1, color: '#1AA5FC00' // 100% 处的颜色 }], global: false // 缺省为 false } }, lineStyle: { normal:{ color: "#11A3FC", } } } }; let charts1 = echarts.init(document.getElementById('jdhgl')) charts1.setOption(option1) }
11-29
2万+

03-27