Skip to content

Commit

Permalink
Size the strategy chart so that there is more visible screen space
Browse files Browse the repository at this point in the history
  • Loading branch information
bleunguts committed Jan 27, 2024
1 parent f5656de commit 2548d1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Web/src/components/layout/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Chart(props: ChartProps) {
{label}
</Typography>
<ResponsiveContainer>
<LineChart width={400} height={200} data={data}>
<LineChart data={data}>
<YAxis yAxisId={0} orientation='left'/>
<YAxis yAxisId={1} orientation='right'/>
<XAxis dataKey="time" />
Expand Down
7 changes: 3 additions & 4 deletions Web/src/components/layout/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ export const Main = observer(function Main(props: MainProps) {
<CardContent>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
height: 200,
height: 500,
}}
>
<Typography>{tradingStrategyStore.symbol}</Typography>
Expand All @@ -70,9 +69,9 @@ export const Main = observer(function Main(props: MainProps) {
}}>
<CardContent>
<Paper sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
flexDirection: 'column',
height: 400,
}}
>
<Typography style={{
Expand Down

0 comments on commit 2548d1a

Please sign in to comment.