From e3d8a0625ecd52af6dac5417048a605ec664f275 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Tue, 14 Jul 2020 14:22:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=20=E5=9B=BE=E8=A1=A8y?= =?UTF-8?q?=E8=BD=B4=E9=97=B4=E8=B7=9D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/eharts-statistics/eharts-statistics.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/ui/eharts-statistics/eharts-statistics.component.ts b/src/app/ui/eharts-statistics/eharts-statistics.component.ts index dfaa404..f189e82 100644 --- a/src/app/ui/eharts-statistics/eharts-statistics.component.ts +++ b/src/app/ui/eharts-statistics/eharts-statistics.component.ts @@ -179,15 +179,15 @@ export class EhartsStatisticsComponent implements OnInit { }, type: 'category', data: postNames, - max: function (value) { - return 100/postNames.length; - }, + max: 15 }, series: [ { type: 'bar', data: counts, - barMaxWidth: 40, // 最大宽度 + barMinWidth: 10, // 最小宽度 + barMaxWidth: 30, // 最大宽度 + barCategoryGap: 5, itemStyle:{ normal:{ color:'#40B4E8',