From fc6b36b69074067a0b2191d9b5fe64b87daddf04 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 22 May 2022 22:05:52 -0500 Subject: [PATCH] Adjust numeric graph axis to use large number formatting --- web/components/contract/numeric-graph.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/contract/numeric-graph.tsx b/web/components/contract/numeric-graph.tsx index 621c0e29..f6532b9b 100644 --- a/web/components/contract/numeric-graph.tsx +++ b/web/components/contract/numeric-graph.tsx @@ -56,10 +56,10 @@ export const NumericGraph = memo(function NumericGraph(props: { min: min, max: max, }} - xFormat={(d) => `${Math.round(+d * 100) / 100}`} + xFormat={(d) => `${formatLargeNumber(+d, 3)}`} axisBottom={{ tickValues: numXTickValues, - format: (d) => `${Math.round(+d * 100) / 100}`, + format: (d) => `${formatLargeNumber(+d, 3)}`, }} colors={{ datum: 'color' }} pointSize={0}