Skip to content

Commit

Permalink
Merge pull request #8 from charlie-collard/fix_y_axis_formatting
Browse files Browse the repository at this point in the history
Add y-axis formatter for overview bar chart
  • Loading branch information
frectonz authored Jun 17, 2024
2 parents e861787 + d81819b commit d65dd99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/routes/index.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export function TheBarChart({ counts }: TheBarChartProps) {
fontSize={12}
tickLine={false}
axisLine={false}
tickFormatter={(number) => Intl.NumberFormat("en-US", {notation: "compact", maximumFractionDigits: 1}).format(number)}
/>
<Bar
dataKey="count"
Expand Down

0 comments on commit d65dd99

Please sign in to comment.