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 @@