We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3619417 commit 96a7250Copy full SHA for 96a7250
app/components/TimeSeriesChart.tsx
@@ -130,7 +130,7 @@ export default function TimeSeriesChart({
130
startTime,
131
endTime,
132
unit,
133
- yAxisTickFormatter,
+ yAxisTickFormatter = (val) => val.toLocaleString(),
134
}: TimeSeriesChartProps) {
135
// We use the largest data point +20% for the graph scale. !rawData doesn't
136
// mean it's empty (it will never be empty because we fill in artificial 0s at
@@ -184,7 +184,7 @@ export default function TimeSeriesChart({
184
orientation="right"
185
tick={textMonoMd}
186
tickMargin={8}
187
- tickFormatter={yAxisTickFormatter || ((val: number) => val.toLocaleString())}
+ tickFormatter={yAxisTickFormatter}
188
padding={{ top: 32 }}
189
{...yTicks}
190
/>
0 commit comments