From f830c733cbc071f023c9a9a4e1571b7c81d672bf Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 12 十一月 2020 11:47:33 +0800
Subject: [PATCH] 2020-11-12

---
 src/templates/sharecomponent/chartcomponent/index.jsx |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/templates/sharecomponent/chartcomponent/index.jsx b/src/templates/sharecomponent/chartcomponent/index.jsx
index c9b6726..da2b46f 100644
--- a/src/templates/sharecomponent/chartcomponent/index.jsx
+++ b/src/templates/sharecomponent/chartcomponent/index.jsx
@@ -420,6 +420,9 @@
         if (plot.label === 'true') {
           _chart.label('value')
         }
+        if (plot.barSize || plot.correction) {
+          _chart.size(plot.barSize || 35)
+        }
       } else if (plot.adjust === 'stack') {
         let _chart = chart
           .interval()
@@ -431,6 +434,10 @@
         if (plot.label === 'true') {
           _chart.label('value')
         }
+
+        if (plot.barSize || plot.correction) {
+          _chart.size(plot.barSize || 35)
+        }
       }
   
       chart.render()

--
Gitblit v1.8.0