代码如下
option: {backgroundColor: "transparent",tooltip: {trigger: "axis",axisPointer: {lineStyle: {color: {type: "linear",x: 0,y: 0,x2: 0,y2: 1,colorStops: [{offset: 0,color: "rgba(126,199,255,0)", // 0% 处的颜色},{offset: 0.5,color: "rgba(126,199,255,1)", // 100% 处的颜色},{offset: 1,color: "rgba(126,199,255,0)", // 100% 处的颜色},],global: false, // 缺省为 false},},},extraCssText: "width:100px;",textStyle: {//---提示框内容样式// color:"green",fontSize: 24,},// formatter: '工单数量: {c0}',},legend: {itemHeight: 14,itemWidth: 14,icon: "rect",top: "0",right: "5%",type: "plain",textStyle: {color: "#7ec7ff",fontSize: 24,},// icon:'rect',itemGap: 25,itemWidth: 18,},grid: {top: "10%",left: "15%",right: "5%",bottom: "15%",},xAxis: {max: 50,axisLine: {lineStyle: {color: "#44A0B7",},},axisLabel: {textStyle: {color: "#fff",fontSize: 24,},},show: true,type: "value",axisTick: {show: false,},splitLine: {show: false,},},yAxis: {data: ["提示", "一般", "重要", "紧急"],// data: ["紧急", "重要", "一般", "提示"],axisLine: {show: true,lineStyle: {color: "