withAttribution
[ true, "TradingView Lightweight Charts™\nCopyright (с) 2025 TradingView, Inc. https://www.tradingview.com/" ]
import { attributionNotice, withAttribution } from "@sportsdataverse/sdvplot/lightweight-charts";
import { createChart } from "lightweight-charts";
const el = document.body.appendChild(document.createElement("div"));
// the chart, with TradingView's logo (its link) on it, and TradingView's notice on the page
const chart = createChart(el, withAttribution({ width: 640, height: 320 }));
const notice = attributionNotice(el.parentElement ?? el);
[chart.options().layout.attributionLogo, notice.textContent];
Tags: docstring · withAttribution. All sdvplot examples.