update ticks
This commit is contained in:
parent
60337b9db7
commit
78c33d2d8f
@ -229,6 +229,7 @@ import Ripple from 'vue-ripple-directive'
|
|||||||
import FeatherIcon from '@/@core/components/feather-icon/FeatherIcon.vue'
|
import FeatherIcon from '@/@core/components/feather-icon/FeatherIcon.vue'
|
||||||
import {
|
import {
|
||||||
chartColors,
|
chartColors,
|
||||||
|
formatNumber,
|
||||||
formatTokenAmount, formatTokenDenom, getLocalAccounts, getLocalChains, getUserCurrency, getUserCurrencySign, setUserCurrency,
|
formatTokenAmount, formatTokenDenom, getLocalAccounts, getLocalChains, getUserCurrency, getUserCurrencySign, setUserCurrency,
|
||||||
} from '@/libs/data'
|
} from '@/libs/data'
|
||||||
import ToastificationContent from '@core/components/toastification/ToastificationContent.vue'
|
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
|
// For a category axis, the val is the index so the lookup via getLabelForValue is needed
|
||||||
callback(val, index) {
|
callback(val, index) {
|
||||||
// Hide the label of every 2nd dataset
|
// Hide the label of every 2nd dataset
|
||||||
return index % 5 === 0 ? `${val}` : ''
|
return index % 5 === 0 ? formatNumber(val, true) : ''
|
||||||
},
|
},
|
||||||
color: 'red',
|
color: 'red',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user