fix(chart): 关闭 lightweight-charts TradingView 归属角标

- layout.attributionLogo=false: 板块分时图与个股日K两处一致
- licence 链接要求改由 README 技术栈 Lightweight Charts 外链承担
- 实测: 个股分析页图表渲染正常, DOM 无 tv-attr-logo 残留

# Conflicts:
#	README.md
This commit is contained in:
shy3130
2026-08-30 19:05:35 +08:00
parent 3f27d412d1
commit 893cf960e3
2 changed files with 4 additions and 0 deletions
@@ -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',
@@ -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',