From 1b6086e0fb66410fb237e6893f791a26bf2e7ff1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 22 十一月 2023 10:37:00 +0800
Subject: [PATCH] 2023-11-22

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

diff --git a/src/menu/components/chart/antv-bar/index.jsx b/src/menu/components/chart/antv-bar/index.jsx
index f206035..ad77f84 100644
--- a/src/menu/components/chart/antv-bar/index.jsx
+++ b/src/menu/components/chart/antv-bar/index.jsx
@@ -796,7 +796,7 @@
 
     view2.data(dv.rows)
 
-    if (!noLegend) {
+    if (!noLegend && Bar_axis.length) {
       view2.legend(false)
     }
 

--
Gitblit v1.8.0