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 닫기