Skip to content

Commit 2b5aca1

Browse files
authored
fix: profit axis width (#78)
1 parent eeb67db commit 2b5aca1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/predict-ui/src/components/ProfitOverTime/Chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ export const Chart = ({ currency = 'USD', data }: ChartProps) => {
8585
tickMargin={16}
8686
/>
8787
<YAxis
88+
width="auto"
8889
orientation="right"
8990
tickFormatter={(value) => `${currencySymbol}${value.toFixed(2)}`}
9091
tick={{ fill: COLOR.SECONDARY, fontSize: 14 }}
9192
axisLine={false}
9293
tickLine={false}
93-
width={60}
9494
tickMargin={16}
9595
/>
9696
<ChartTooltip currencySymbol={currencySymbol} />

apps/predict-ui/src/mocks/mockProfitOverTime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const getRandomDeltaProfit = (numberOfPoints: number) =>
66
date.setDate(date.getDate() - (numberOfPoints - 1 - i));
77
return {
88
timestamp: date.toISOString(),
9-
delta_profit: parseFloat((Math.random() * 10 - 2).toFixed(2)),
9+
delta_profit: parseFloat((Math.random() * 100 - 2).toFixed(2)),
1010
};
1111
});
1212

0 commit comments

Comments
 (0)