Theme functions

Resolve and apply public Line and Stock chart themes.

Import
import { applyLineTheme } from "@sixtyfold/themes/line";

Use the public entry point shown above.

applyLineTheme

Apply a public theme to a line chart.

Import @sixtyfold/themes/linefunction

applyLineTheme: (chart: LineChart, id: ChartThemeId) => void

applyStockTheme

Apply a public theme to a stock chart.

Import @sixtyfold/themes/stockfunction

applyStockTheme: (chart: StockChart, id: ChartThemeId) => void

getLineThemePreset

Return a public theme without requiring the stock package's declarations.

Import @sixtyfold/themes/linefunction

getLineThemePreset: (id: ChartThemeId) => LineThemePreset

getStockThemePreset

Return a public theme without requiring the line package's declarations.

Import @sixtyfold/themes/stockfunction

getStockThemePreset: (id: ChartThemeId) => StockThemePreset

getThemePreset

Return an immutable public preset, throwing for an unknown runtime value.

Import @sixtyfold/themesfunction

getThemePreset: (id: ChartThemeId) => ChartThemePreset