diff --git a/web/components/StockChart.tsx b/web/components/StockChart.tsx index d1c62c2..e57c456 100644 --- a/web/components/StockChart.tsx +++ b/web/components/StockChart.tsx @@ -7,8 +7,6 @@ import { type IChartApi, type ISeriesApi, type LineData, - type SeriesMarker, - type Time, type UTCTimestamp, } from "lightweight-charts"; import type { ChartPayload, LatestPredictionResponse } from "../lib/api"; @@ -104,28 +102,9 @@ export function StockChart({ chart, prediction }: Props) { close: p.close as number, })); candleRef.current.setData(data); - - // 오늘 날짜 마커: 일/주/월봉에서만 표시 (10분봉은 데이터 자체가 오늘 하루라 무의미). - // markers 는 데이터 포인트의 time 과 일치해야 표시되므로, 오늘 또는 가장 가까운 과거 - // 거래일을 찾는다. - if (!isIntraday && chart.today) { - const todayTs = isoToUtcTs(chart.today); - // 차트의 마지막 데이터가 오늘이면 그 위에, 아니면 마지막 데이터 위에 "오늘" 표시. - const lastTs = data.length > 0 ? (data[data.length - 1].time as UTCTimestamp) : null; - const markerTime = (lastTs && lastTs <= todayTs ? lastTs : todayTs) as UTCTimestamp; - const markers: SeriesMarker