From 1de4cb5192b1744b61555d5d7b93e6baa59af1e6 Mon Sep 17 00:00:00 2001 From: "lily.zhang" Date: Thu, 18 Nov 2021 11:42:43 +0800 Subject: [PATCH] cxw-010203 --- src/utils/gol/singleColumnar.js | 11 +++++------ .../BrandComparison/brandEventComparison/index.vue | 4 ++-- .../keyMediaCommunicationComparison/opt.js | 7 +++++-- src/views/BrandComparison/weiboBigVComparison/opt.js | 7 +++++-- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/utils/gol/singleColumnar.js b/src/utils/gol/singleColumnar.js index 5863d1f..7a935e0 100644 --- a/src/utils/gol/singleColumnar.js +++ b/src/utils/gol/singleColumnar.js @@ -1,14 +1,14 @@ /* * @Author: your name * @Date: 2021-10-08 10:13:32 - * @LastEditTime: 2021-11-12 14:53:44 + * @LastEditTime: 2021-11-18 11:29:41 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/utils/gol/index.js */ import * as echarts from "echarts"; import { bigNumberTransform } from "@/utils/gol/dataTool" -import {doStr} from "./dataTool" +// import {doStr} from "./dataTool" export function createSingleColumnar(dx=[], ds=[], color='#3373CC') { return { grid: { @@ -41,10 +41,9 @@ export function createSingleColumnar(dx=[], ds=[], color='#3373CC') { type: "category", axisLabel :{ interval:0, - formatter: (value) => { - let str = doStr(value, 4); - return str; - } + with: 1 / dx.length * 100 + '%', + overflow: 'truncate', + ellipsis: '...' }, axisTick: { show: false, diff --git a/src/views/BrandComparison/brandEventComparison/index.vue b/src/views/BrandComparison/brandEventComparison/index.vue index 910ed2b..3064bfd 100644 --- a/src/views/BrandComparison/brandEventComparison/index.vue +++ b/src/views/BrandComparison/brandEventComparison/index.vue @@ -1,7 +1,7 @@