Adjust numeric graph axis to use large number formatting

This commit is contained in:
James Grugett 2022-05-22 22:05:52 -05:00
parent 21527275d1
commit fc6b36b690

View File

@ -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}