From 893cf960e3cf791835feb7204a3971f0a6e91867 Mon Sep 17 00:00:00 2001 From: shy3130 <415333856@qq.com> Date: Sun, 30 Aug 2026 19:05:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(chart):=20=E5=85=B3=E9=97=AD=20lightweight-?= =?UTF-8?q?charts=20TradingView=20=E5=BD=92=E5=B1=9E=E8=A7=92=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - layout.attributionLogo=false: 板块分时图与个股日K两处一致 - licence 链接要求改由 README 技术栈 Lightweight Charts 外链承担 - 实测: 个股分析页图表渲染正常, DOM 无 tv-attr-logo 残留 # Conflicts: # README.md --- frontend/src/components/CandlestickChart.tsx | 2 ++ frontend/src/components/DimensionMembersDialog.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/frontend/src/components/CandlestickChart.tsx b/frontend/src/components/CandlestickChart.tsx index 9b766fb..6c26dd7 100644 --- a/frontend/src/components/CandlestickChart.tsx +++ b/frontend/src/components/CandlestickChart.tsx @@ -66,6 +66,8 @@ export function CandlestickChart({ data, height = 480 }: Props) { width: el.clientWidth, height, layout: { + // 关闭 TV 角标 (licence 归属改由 README 技术栈外链承担) + attributionLogo: false, background: { color: THEME.background }, textColor: ctRef.current.text, fontFamily: 'JetBrains Mono, monospace', diff --git a/frontend/src/components/DimensionMembersDialog.tsx b/frontend/src/components/DimensionMembersDialog.tsx index b80845e..d67ef6f 100644 --- a/frontend/src/components/DimensionMembersDialog.tsx +++ b/frontend/src/components/DimensionMembersDialog.tsx @@ -439,6 +439,8 @@ function IntradayChart({ points, kind }: { points: DimensionIntradayPoint[]; kin width: el.clientWidth, height: 132, layout: { + // 关闭 TV 角标 (licence 归属改由 README 技术栈外链承担) + attributionLogo: false, background: { color: 'transparent' }, textColor: ctRef.current.text, fontFamily: 'JetBrains Mono, monospace',