diff --git a/src/pages/AdminDashboard.tsx b/src/pages/AdminDashboard.tsx index 814aede..cf1601d 100644 --- a/src/pages/AdminDashboard.tsx +++ b/src/pages/AdminDashboard.tsx @@ -204,13 +204,16 @@ function UserGrowthChart(props: { users: User[]; requestState: RequestState }) { data={[ { id: "growth_graph", - data: props.users.reduce( - (previousValue: any[], user: User) => [ - ...previousValue, - { x: user.createdAt, y: previousValue.length + 1 }, - ], - [] - ), + data: [ + ...props.users.reduce( + (previousValue: any[], user: User) => [ + ...previousValue, + { x: user.createdAt, y: previousValue.length + 1 }, + ], + [] + ), + { x: new Date(), y: props.users.length }, + ], }, ]} enablePointLabel={false} @@ -243,7 +246,7 @@ function UserGrowthChart(props: { users: User[]; requestState: RequestState }) { fontSize: 14, crosshair: { line: { stroke: "var(--text_color)" } }, }} - curve="monotoneX" + curve="step" sliceTooltip={({ slice }) => { return (