obv 그래프 수정

This commit is contained in:
Macbook
2026-06-09 02:57:58 +09:00
parent 7c1cc2ee4b
commit 133c20cc25
3 changed files with 70 additions and 16 deletions
+12 -2
View File
@@ -474,12 +474,22 @@ function normalizeSignalLineIndicatorPlots(
const reg = registryPlots.find(r => r.id === p.id);
if (!reg) return p;
const normalized = normalizeDualLinePlotDef(p, reg);
// OBV 본선 — DB 저장색(투명·신호선과 동일) 무시, registry 기본색 유지
// OBV 본선 — DB 저장색(투명·신호선과 동일) 무시, registry 기본색·굵기 유지
if (p.id === 'plot0') {
return { ...normalized, color: reg.color };
return {
...normalized,
type: 'line' as const,
color: reg.color,
lineWidth: Math.max(2, normalized.lineWidth ?? reg.lineWidth ?? 2),
};
}
return normalized;
});
// plot0(본선) → plot1(신호선) 순서 보장
nextPlots.sort((a, b) => {
const order = ['plot0', 'plot1'];
return order.indexOf(a.id) - order.indexOf(b.id);
});
return {
plots: nextPlots,
plotVisibility: { ...plotVisibility, plot0: true, plot1: true },