Browse Source

宽度和颜色

panxiandiao_i 5 years ago
parent
commit
1f11f97dc7
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/quality/qualityMeasurement.vue

+ 4 - 2
src/views/quality/qualityMeasurement.vue

@@ -684,6 +684,7 @@ export default {
               this.totalOneEchartsRate = echarts.init(document.getElementById('comparatorRateBetween'))
               // const totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
               this.totalOneEcharts.setOption({
+                color: ['#8dcaea'],
                 legend: {},
                 tooltip: {},
                 grid: { containLabel: true },
@@ -696,7 +697,7 @@ export default {
                 // Declare several bar series, each will be mapped
                 // to a column of dataset.source by default.
                 series: [
-                  { type: 'bar' }
+                  { type: 'bar', barMaxWidth: '70' }
                 ]
               })
               this.totalOneEchartsMount.setOption({
@@ -761,6 +762,7 @@ export default {
             this.$nextTick(() => {
               this.totalOneEchartsOnline = echarts.init(document.getElementById('comparatorOnlineBetween'))
               this.totalOneEchartsOnline.setOption({
+                color: ['#8dcaea'],
                 legend: {},
                 tooltip: {},
                 grid: { containLabel: true },
@@ -773,7 +775,7 @@ export default {
                 // Declare several bar series, each will be mapped
                 // to a column of dataset.source by default.
                 series: [
-                  { type: 'bar' }
+                  { type: 'bar', barMaxWidth: '70' }
                 ]
               })
               window.addEventListener('resize', () => {