From 6b7e7a8370410b7ad87e980a082f5fcf5ee46689 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 1 Jul 2020 16:08:00 +0800 Subject: [PATCH] fix displaying number of label in admin chart --- resources/assets/src/views/admin/Dashboard.ts | 10 ++++++++++ resources/misc/changelogs/en/5.0.0.md | 1 + resources/misc/changelogs/zh_CN/5.0.0.md | 1 + 3 files changed, 12 insertions(+) diff --git a/resources/assets/src/views/admin/Dashboard.ts b/resources/assets/src/views/admin/Dashboard.ts index bb6b1fd8..12119226 100644 --- a/resources/assets/src/views/admin/Dashboard.ts +++ b/resources/assets/src/views/admin/Dashboard.ts @@ -41,12 +41,22 @@ async function createChart(el: HTMLDivElement) { minInterval: 1, boundaryGap: false, position: 'left', + axisPointer: { + label: { + precision: 0, + }, + }, }, { type: 'value', minInterval: 1, boundaryGap: false, position: 'right', + axisPointer: { + label: { + precision: 0, + }, + }, }, ], series: [ diff --git a/resources/misc/changelogs/en/5.0.0.md b/resources/misc/changelogs/en/5.0.0.md index 7624db07..e2023d58 100644 --- a/resources/misc/changelogs/en/5.0.0.md +++ b/resources/misc/changelogs/en/5.0.0.md @@ -81,6 +81,7 @@ - Fixed that score calculation at upload page isn't consistent with that at back-end. - Fixed that new texture name isn't checked when texture is renamed. - Fixed that player isn't updated after closet item was removed. +- Fixed that number of label of chart in administration didn't rendered as integer. ## Removed diff --git a/resources/misc/changelogs/zh_CN/5.0.0.md b/resources/misc/changelogs/zh_CN/5.0.0.md index fa6ef15c..238f0e07 100644 --- a/resources/misc/changelogs/zh_CN/5.0.0.md +++ b/resources/misc/changelogs/zh_CN/5.0.0.md @@ -81,6 +81,7 @@ - 修复「材质上传」页面的积分计算与后端不一致的问题 - 修复重命名材质时不对新名称进行检查的问题 - 修复移除衣柜物品后不更新角色的问题 +- 修复管理面板的图表中标签显示为小数的问题 ## 移除