From 78c33d2d8fde5880ae169b2bc7c2d3e3bd04f7f7 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 9 Oct 2021 16:52:24 +0800 Subject: [PATCH] update ticks --- src/views/WalletAccounts.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/WalletAccounts.vue b/src/views/WalletAccounts.vue index 4e8c5933..7dce6edc 100644 --- a/src/views/WalletAccounts.vue +++ b/src/views/WalletAccounts.vue @@ -229,6 +229,7 @@ import Ripple from 'vue-ripple-directive' import FeatherIcon from '@/@core/components/feather-icon/FeatherIcon.vue' import { chartColors, + formatNumber, formatTokenAmount, formatTokenDenom, getLocalAccounts, getLocalChains, getUserCurrency, getUserCurrencySign, setUserCurrency, } from '@/libs/data' import ToastificationContent from '@core/components/toastification/ToastificationContent.vue' @@ -302,7 +303,7 @@ export default { // For a category axis, the val is the index so the lookup via getLabelForValue is needed callback(val, index) { // Hide the label of every 2nd dataset - return index % 5 === 0 ? `${val}` : '' + return index % 5 === 0 ? formatNumber(val, true) : '' }, color: 'red', },