Skip to content

Commit ce3407a

Browse files
committed
Show thousand separator on mission type pie chart
1 parent 1ab7ad5 commit ce3407a

File tree

1 file changed

+7
-1
lines changed
  • community-dashboard/app/views/StatsBoard

1 file changed

+7
-1
lines changed

community-dashboard/app/views/StatsBoard/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ const organizationTotalSwipeFormatter = (value: number, name: string) => (
121121
[value.toLocaleString(), organizationNameFormatter(name)]
122122
);
123123

124+
const missionTypeTotalSwipeFormatter = (value: number, name: string) => (
125+
[value.toLocaleString(), name]
126+
);
127+
124128
// Timeseries by week day
125129

126130
interface Day {
@@ -710,7 +714,9 @@ function StatsBoard(props: Props) {
710714
{sortedProjectSwipeType.length > 0 ? (
711715
<ResponsiveContainer>
712716
<PieChart>
713-
<Tooltip />
717+
<Tooltip
718+
formatter={missionTypeTotalSwipeFormatter}
719+
/>
714720
<Legend
715721
align={documentWidth <= CHART_BREAKPOINT ? 'center' : 'right'}
716722
layout={documentWidth <= CHART_BREAKPOINT ? 'horizontal' : 'vertical'}

0 commit comments

Comments
 (0)