From ada653685c62e55b2d293f93470eaad59fb5cafb Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 17 四月 2021 11:32:09 +0800
Subject: [PATCH] 2021-04-17

---
 src/menu/components/chart/antv-bar/index.jsx |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/index.jsx b/src/menu/components/chart/antv-bar/index.jsx
index 2c27c5f..02fd71b 100644
--- a/src/menu/components/chart/antv-bar/index.jsx
+++ b/src/menu/components/chart/antv-bar/index.jsx
@@ -511,6 +511,9 @@
             }
           })
         }
+        if (plot.barRadius) {
+          _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
+        }
       } else if (item.chartType === 'line') {
         let _chart = chart
           .line()
@@ -703,6 +706,9 @@
         if (plot.barSize || plot.correction) {
           _chart.size(plot.barSize || 35)
         }
+        if (plot.barRadius) {
+          _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
+        }
       } else if (plot.adjust === 'stack') {
         let _chart = chart
           .interval()
@@ -749,6 +755,9 @@
         if (plot.barSize || plot.correction) {
           _chart.size(plot.barSize || 35)
         }
+        if (plot.barRadius) {
+          _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] })
+        }
       }
   
       chart.render()

--
Gitblit v1.8.0