Skip to main content
Version: v24

Interface: IWatermarkApi

Charting Library.IWatermarkApi

An API object used to change the settings of the watermark.

Methods

PropertyType
color() => IWatchedValue<string>
visibility() => IWatchedValue<boolean>
setContentProvider(provider: WatermarkContentProvider) => void

color

Object that can be used to read/set/watch the color of the watermark text.

Signature

color() => IWatchedValue<string>

Returns

IWatchedValue<string>


visibility

Object that can be used to read/set/watch the visibility of the watermark.

Signature

visibility() => IWatchedValue<boolean>

Returns

IWatchedValue<boolean>


setContentProvider

Set a custom content provider for the watermark content.

Signature

setContentProvider(provider: WatermarkContentProvider) => void

Parameters

NameTypeDescription
providerWatermarkContentProviderCustom watermark content provider, use null if you would like to revert back to the default content for the watermark.

Returns

void