From c9a9c39626efad8b2213f42d64b09e18096d3bab Mon Sep 17 00:00:00 2001 From: xuyiming Date: Wed, 12 Aug 2020 10:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E8=B5=84=E6=BA=90=E6=A6=82=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/e-charts/histogramScroll.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/e-charts/histogramScroll.vue b/src/components/e-charts/histogramScroll.vue index df6c975..572f7cd 100644 --- a/src/components/e-charts/histogramScroll.vue +++ b/src/components/e-charts/histogramScroll.vue @@ -59,11 +59,21 @@ export default { { type: "category", axisLabel: { + interval: 0, textStyle: { color: "#0d1847", fontSize: 12, lineHeight: 20, }, + formatter(value) { + let valueTxt = ""; + if (value.length > 7) { + valueTxt = value.substring(0, 7 - 1) + "..."; + } else { + valueTxt = value; + } + return valueTxt; + }, }, axisTick: { show: false, -- 2.26.0