Version: 1.0.0
Custom watermark logo
The CustomWatermarkLogo module configures the interactive branding pill badge shown on the chart — with a clickable logo, label text, and target URL.
Overview
Edit custom-watermark-logo.js to call window.ChartingAPI.setWatermarkLogoSettings(). The badge expands on hover to show the branding text and becomes clickable to navigate to the specified URL.
Settings API
window.ChartingAPI.setWatermarkLogoSettings({
show: true,
logoUrl: 'https://backtestx.in/logo.png', // URL to the logo image
clickUrl: 'https://backtestx.in', // Target URL on click
text: 'Chart by BacktestX' // Label text next to the logo
});
show: true,
logoUrl: 'https://backtestx.in/logo.png', // URL to the logo image
clickUrl: 'https://backtestx.in', // Target URL on click
text: 'Chart by BacktestX' // Label text next to the logo
});
Options Reference
| Option | Type | Description |
|---|---|---|
| show | boolean | Toggle visibility of the branding pill badge. |
| logoUrl | string | URL or local path to the logo image. |
| clickUrl | string | Target URL navigated to when the badge is clicked. |
| text | string | Label text displayed next to the logo on expand. |