diff --git a/src/utils/gol/sideSingleColumn.js b/src/utils/gol/sideSingleColumn.js index a6ab9e4..1814aa4 100644 --- a/src/utils/gol/sideSingleColumn.js +++ b/src/utils/gol/sideSingleColumn.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-15 17:52:59 - * @LastEditTime: 2021-11-12 14:09:59 + * @LastEditTime: 2021-11-12 15:09:00 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/utils/gol/sideSingleColumn.js @@ -18,6 +18,7 @@ */ import * as echarts from "echarts"; import { bigNumberTransform } from "@/utils/gol/dataTool" +import {doStr} from "./dataTool" export function createSideSingleColumn(dx=[], ds=[], color='#51bc91') { return { grid: { @@ -64,6 +65,13 @@ export function createSideSingleColumn(dx=[], ds=[], color='#51bc91') { axisTick: { show: false, }, + axisLabel :{ + interval:0, + formatter: (value) => { + let str = doStr(value, 8); + return str; + } + }, axisLine: { show: false, lineStyle: { diff --git a/src/views/ModelComparison/brandCompateHeader/index.vue b/src/views/ModelComparison/brandCompateHeader/index.vue index 5e32435..545c413 100644 --- a/src/views/ModelComparison/brandCompateHeader/index.vue +++ b/src/views/ModelComparison/brandCompateHeader/index.vue @@ -1,7 +1,7 @@