xsh 4 anni fa
parent
commit
cb1e3d2dff
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      src/views/pastureData/chart/chartMzcl.vue

+ 7 - 1
src/views/pastureData/chart/chartMzcl.vue

@@ -22,6 +22,7 @@ export default {
         legend: {
           data: ['配怀存栏', '分娩存栏', '后备存栏']
         },
+        color: ['#6EE9CF', '#4EC0FF', '#7387F3'],
         grid: {
           left: '3%',
           right: '4%',
@@ -29,10 +30,12 @@ export default {
           containLabel: true
         },
         xAxis: {
-          type: 'value'
+          type: 'value',
+          name: '单位/头'
         },
         yAxis: {
           type: 'category',
+          name: '时间',
           data: ['07-10', '07-11', '07-12', '07-13', '07-14', '07-15', '07-16']
         },
         series: [
@@ -46,6 +49,7 @@ export default {
             emphasis: {
               focus: 'series'
             },
+            barWidth: 30,
             data: [320, 302, 301, 334, 390, 330, 320]
           },
           {
@@ -58,6 +62,7 @@ export default {
             emphasis: {
               focus: 'series'
             },
+            barWidth: 30,
             data: [120, 132, 101, 134, 90, 230, 210]
           },
           {
@@ -70,6 +75,7 @@ export default {
             emphasis: {
               focus: 'series'
             },
+            barWidth: 30,
             data: [220, 182, 191, 234, 290, 330, 310]
           },
         ]