diff --git a/src/components/datav/chart-bar.vue b/src/components/datav/chart-bar.vue index d152b56..7d395b2 100644 --- a/src/components/datav/chart-bar.vue +++ b/src/components/datav/chart-bar.vue @@ -189,7 +189,7 @@ function getColor(val) { font-size: 12px; .bar-item_content { - width: calc(100% - var(--label-width)); + width: calc(100% - var(--label-width) - 42px); } } diff --git a/src/components/datav/chart-bar1.vue b/src/components/datav/chart-bar1.vue index d290e5a..4055458 100644 --- a/src/components/datav/chart-bar1.vue +++ b/src/components/datav/chart-bar1.vue @@ -1,6 +1,6 @@