diff --git a/apps/stock/web-app/src/components/charts/Chart.tsx b/apps/stock/web-app/src/components/charts/Chart.tsx index e22c1db..93bf99f 100644 --- a/apps/stock/web-app/src/components/charts/Chart.tsx +++ b/apps/stock/web-app/src/components/charts/Chart.tsx @@ -24,7 +24,7 @@ export interface TradeMarker { export interface ChartProps { data: ChartData[]; - height?: number; + height?: number | string; type?: 'candlestick' | 'line' | 'area'; showVolume?: boolean; theme?: 'light' | 'dark'; @@ -399,7 +399,10 @@ export function Chart({
{error}
diff --git a/apps/stock/web-app/src/features/backtest/components/BacktestChart.tsx b/apps/stock/web-app/src/features/backtest/components/BacktestChart.tsx index db651dd..03f7cf9 100644 --- a/apps/stock/web-app/src/features/backtest/components/BacktestChart.tsx +++ b/apps/stock/web-app/src/features/backtest/components/BacktestChart.tsx @@ -1,6 +1,7 @@ import type { BacktestResult } from '../types/backtest.types'; import { useState, useMemo, memo } from 'react'; import { Chart } from '../../../components/charts/Chart'; +import { ChartContainer } from './ChartContainer'; interface BacktestChartProps { result: BacktestResult | null; @@ -107,22 +108,26 @@ export const BacktestChart = memo(function BacktestChart({ result, isLoading }:No positions to display
+ )} +No positions to display
- )} + {/* Summary metrics at bottom - similar to performance metrics */} +