Skip to content

Commit

Permalink
Merge pull request #754 from Conflux-Chain/feat-charts-optimize
Browse files Browse the repository at this point in the history
fix: SCAN-3978
  • Loading branch information
0x74616e67 authored May 17, 2022
2 parents a7fc00a + 506fd28 commit 6dd8177
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/containers/Charts/Token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
Expand Down Expand Up @@ -86,6 +86,10 @@ export function Token({
if (type.indexOf('20') > -1) {
props.options.series.unshift({
name: `<span>${t(translations.highcharts.token.seriesName)}</span>`,
// @ts-ignore
tooltip: {
valueDecimals: 2,
},
});
}

Expand Down

0 comments on commit 6dd8177

Please sign in to comment.