| | |
| | | myChart = echarts.init(chartDom); |
| | | let option; |
| | | let lineColor = "#35ddc74d"; |
| | | let spirit = "/cockpitPage/order-bg.png"; |
| | | if (data) { |
| | | option = { |
| | | color: ["#dcb018", "#00FFFF"], |
| | |
| | | ], |
| | | series: [ |
| | | { |
| | | type: "bar", |
| | | type: "pictorialBar", |
| | | name: "正品数量", |
| | | barWidth: "15", |
| | | itemStyle: { |
| | | normal: { |
| | | //柱形图圆角,初始化效果 |
| | | barBorderRadius: [4, 4, 0, 0], |
| | | }, |
| | | }, |
| | | symbol: spirit, |
| | | symbolRepeat: true, |
| | | symbolMargin: "25%", |
| | | symbolClip: true, |
| | | symbolSize: [17, 4], |
| | | barCategoryGap: "40%", |
| | | data: data.datay, |
| | | }, |
| | | { |
| | | type: "bar", |
| | | type: "pictorialBar", |
| | | name: "次品数量", |
| | | barWidth: "15", |
| | | itemStyle: { |
| | | normal: { |
| | | //柱形图圆角,初始化效果 |
| | | barBorderRadius: [4, 4, 0, 0], |
| | | }, |
| | | }, |
| | | symbol: spirit, |
| | | symbolRepeat: true, |
| | | symbolMargin: "25%", |
| | | symbolClip: true, |
| | | symbolSize: [17, 4], |
| | | barCategoryGap: "40%", |
| | | data: data.datay2, |
| | | }, |
| | | ], |