From 506fd288d3e14e96779a7a8ede5fefbd456280c8 Mon Sep 17 00:00:00 2001 From: tangxuezhi <0x74616e67@gmail.com> Date: Tue, 17 May 2022 16:41:22 +0800 Subject: [PATCH] fix: SCAN-3978 --- src/app/containers/Charts/Token.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/containers/Charts/Token.tsx b/src/app/containers/Charts/Token.tsx index c259739aa..8b297d560 100644 --- a/src/app/containers/Charts/Token.tsx +++ b/src/app/containers/Charts/Token.tsx @@ -36,7 +36,7 @@ export function Token({ const data4: any = []; data?.list?.map((d, i) => { - const t = dayjs.utc(d.createdAt).valueOf(); + const t = dayjs.utc(d.day).valueOf(); data1.push([t, new BigNumber(d.transferAmount).div(1e18).toNumber()]); data2.push([t, Number(d.transferCount)]); data3.push([t, Number(d.uniqueReceiver)]); @@ -86,6 +86,10 @@ export function Token({ if (type.indexOf('20') > -1) { props.options.series.unshift({ name: `${t(translations.highcharts.token.seriesName)}`, + // @ts-ignore + tooltip: { + valueDecimals: 2, + }, }); }