diff --git a/src/components/e-charts/histogramScroll.vue b/src/components/e-charts/histogramScroll.vue index df6c975680a4b75a5718529d4511b0c217161a55..572f7cd42150dbf0e7939e202814fa16ced9fb9b 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,