소스 검색

报告展示优化

zhangjie 1 년 전
부모
커밋
bcc048d814
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/mark/components/report/chart.js

+ 1 - 1
src/modules/mark/components/report/chart.js

@@ -365,7 +365,7 @@ export function getBarPointTopicOptions(dataObj) {
           margin: 10,
           formatter: function (value) {
             let str = value.split("#");
-            if (str[0].length > 10) str[0] = str[0].substr(0, 10) + "...";
+            if (str[0].length > 8) str[0] = str[0].substr(0, 8) + "...";
             return [str[0], str[1]].join(" ");
           },
         },