Adjust numeric graph axis to use large number formatting
This commit is contained in:
parent
21527275d1
commit
fc6b36b690
|
@ -56,10 +56,10 @@ export const NumericGraph = memo(function NumericGraph(props: {
|
||||||
min: min,
|
min: min,
|
||||||
max: max,
|
max: max,
|
||||||
}}
|
}}
|
||||||
xFormat={(d) => `${Math.round(+d * 100) / 100}`}
|
xFormat={(d) => `${formatLargeNumber(+d, 3)}`}
|
||||||
axisBottom={{
|
axisBottom={{
|
||||||
tickValues: numXTickValues,
|
tickValues: numXTickValues,
|
||||||
format: (d) => `${Math.round(+d * 100) / 100}`,
|
format: (d) => `${formatLargeNumber(+d, 3)}`,
|
||||||
}}
|
}}
|
||||||
colors={{ datum: 'color' }}
|
colors={{ datum: 'color' }}
|
||||||
pointSize={0}
|
pointSize={0}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user