Skip to main content

Interface: ICustomThemesApi

Charting Library.ICustomThemesApi

An API for controlling custom themes. To retrieve this interface, call the IChartingLibraryWidget.customThemes method. For more information on custom themes, refer to the Custom Themes API article.

Methods

applyCustomThemes

applyCustomThemes(customThemes): Promise<void>

Apply custom theme color definitions to the library widget after the widget is created.

You can also specify a custom theme using the ChartingLibraryWidgetOptions.custom_themes property in the Widget Constructor.

Parameters

NameTypeDescription
customThemesCustomThemesCustom theme color definitions

Returns

Promise<void>


resetCustomThemes

resetCustomThemes(): Promise<void>

Reset the widget's color theme colors back to the default values.

Returns

Promise<void>