Kumo Charts

@kumo-charts/core/watermark

API リファレンスはソースコードのコメントから生成しており、英語のみです。

import { … } from '@kumo-charts/core/watermark';

Functions

watermarkfunctionソース

function watermark(): WatermarkModule

The watermark module: large faint text in the middle of the main pane, under the series, such as the symbol and its timeframe, set by the watermark option:

const chart = createChart(container, {
  modules: [watermark()],
  watermark: { lines: [{ text: 'BTCUSDT' }, { text: '1h', size: 20 }] }
});

Interfaces

WatermarkLineinterfaceソース

interface WatermarkLine

A line of text of the watermark.

readonly text: string
readonly size?: number

Font size in CSS pixels, from 6 to 200. Default 40.

WatermarkOptionsinterfaceソース

interface WatermarkOptions

The watermark section of the chart's options, which the watermark module adds.

lines: readonly WatermarkLine[]

Lines of text in the middle of the main pane, under the series, such as the symbol and its timeframe, from the top down. None by default.

color: string | null

The color of the text; null (default) takes the theme's text color, faint.

Types

WatermarkModuletypeソース

type WatermarkModule = ChartModule<{
  readonly options: { readonly watermark: WatermarkOptions };
}>

↑↓ で選択 · Enter で開く · Esc で閉じる