option = { backgroundColor: "#061740", "color": [ "#1890FF" ], "tooltip": { "trigger": "axis", "axisPointer": { "type": "shadow" } }, "grid": { "left": "5%", "right": "10%", "bottom": "5%", "containLabel": true }, "xAxis": [ { "name": "工序", "nameTextStyle": { "color": "#eee", "fontSize": 12 }, "rotate": 340, "type": "category", "data": [ "1000031191", "1000031224", "1000031438", "1000031514", "3000004460", "3000004517", "3000004526", "5000000461" ], "boundaryGap": false, "axisTick": { "show": false }, "splitLine": { "show": false }, "axisLine": { "show": false }, "axisLabel": { "color": "white", "fontSize": 10 } } ], "yAxis": [ { "name": "KWH/吨", "min": 0, "position": "left", "nameTextStyle": { "color": "#fff", "fontSize": 11 }, "type": "value", "axisLabel": { "color": "white", "fontSize": 14 }, "splitLine": { "show": true, "lineStyle": { "type": "dashed", "color": "rgba(230, 247, 255, 0.20)" } } } ], "series": [ { "name": "单吨能耗", "type": "line", "smooth": true, "symbolSize": 1, "label": { "normal": { "show": true, "position": "top", "formatter": "{c}" } }, "tooltip": { "trigger": "axis", "axisPointer": { "type": "line" } }, "lineStyle": { "width": 3, "shadowColor": "#1890FF", "shadowBlur": 20 }, "areaStyle": { "opacity": 1, "color": { "x": 0, "y": 0, "x2": 0, "y2": 1, "type": "linear", "global": false, "colorStops": [ { "offset": 0, "color": "rgba(24, 144, 255, .5)" }, { "offset": 0.3, "color": "rgba(24, 144, 255, 0.2)" }, { "offset": 1, "color": "rgba(24, 144, 255, 0)" } ] } }, "data": [ "0.29", "0.17", "0.74", "0.11", "0.60", "0.04", "0.54", "0.34" ] } ] }