mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 14:24:15 +08:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user