diff --git a/src/utils/gol/bubbleWord.js b/src/utils/gol/bubbleWord.js index b585258..8ee45b0 100644 --- a/src/utils/gol/bubbleWord.js +++ b/src/utils/gol/bubbleWord.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-21 11:36:36 - * @LastEditTime: 2021-11-11 15:03:09 + * @LastEditTime: 2021-11-12 16:40:03 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/utils/gol/bubbleWord.js @@ -40,19 +40,19 @@ function bubbleChart(data = [], format = []) { // 气泡数据 let bubbleData = []; // 气泡基础大小 - let basicSize = 30; + let basicSize = 20; // 节点之间的斥力因子,值越大,气泡间距越大 let repulsion = 380; // 根据气泡数量配置基础大小和斥力因子(以实际情况进行适当调整,使气泡合理分布) if (data.length >= 5 && data.length < 10) { - basicSize = 30; + basicSize = 20; repulsion = 230; } if (data.length >= 10 && data.length < 20) { - basicSize = 40; + basicSize = 30; repulsion = 150; } else if (data.length >= 20) { - basicSize = 50; + basicSize = 40; repulsion = 65; } // 填充气泡数据数组bubbleData diff --git a/src/views/BrandComparison/userAreaDistribution/opt1.js b/src/views/BrandComparison/userAreaDistribution/opt1.js index eb5b011..773983d 100644 --- a/src/views/BrandComparison/userAreaDistribution/opt1.js +++ b/src/views/BrandComparison/userAreaDistribution/opt1.js @@ -3,12 +3,13 @@ /* * @Author: your name * @Date: 2021-10-09 12:38:34 - * @LastEditTime: 2021-10-14 11:48:19 + * @LastEditTime: 2021-11-12 16:35:31 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/views/Index/tailInsight/opt.js */ import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" export default function createOptD1(dx = [],ds = []) { return { grid: { @@ -36,6 +37,12 @@ export default function createOptD1(dx = [],ds = []) { color: "#fff", }, }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, splitLine: { lineStyle: { type: "dashed", // y轴分割线类型 @@ -61,7 +68,7 @@ export default function createOptD1(dx = [],ds = []) { { name: '2011', type: 'bar', - barWidth: 24, + barWidth: 16, data: ds, color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ offset: 0,