| | |
| | | <template> |
| | | <div class="box-container" style="height: 1.52rem" id="echarts3"></div> |
| | | <div class="box-container echarts3Box" id="echarts3"></div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | data: [], |
| | | }, |
| | | grid: { |
| | | left: 13, |
| | | right: 13, |
| | | top: 20, |
| | | left: 33, |
| | | right: 33, |
| | | top: 55, |
| | | bottom:5, |
| | | }, |
| | | yAxis: { |
| | |
| | | data: [], |
| | | type: "line", |
| | | // symbol:'none', |
| | | symbolSize: 0, |
| | | // symbolSize: 0, |
| | | lineStyle: { |
| | | color: "#fff", |
| | | color: "#7b8fe6", |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | label: { |
| | | show: true, |
| | | color: "#fff", |
| | | |
| | | color: "#7b8fe6", |
| | | }, |
| | | }, |
| | | }, |
| | |
| | | xData.push(item.workPieceID) |
| | | yData.push(item.qualityDataVaule) |
| | | }); |
| | | // console.log(xData,yData,this,'x,y'); |
| | | this.$set(this.option.xAxis,'data',xData) |
| | | this.$set(this.option.series[0],'data',yData) |
| | | this.myChart.setOption(this.option); |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | .echarts3Box{ |
| | | height: 150px !important; |
| | | /* background-color: #040d3d; */ |
| | | /* width: 96%; */ |
| | | margin: 0 auto; |
| | | } |
| | | </style> |