Theme functions
Resolve and apply public Line and Stock chart themes.
import { applyLineTheme } from "@sixtyfold/themes/line";Use the public entry point shown above.
applyLineTheme
Apply a public theme to a line chart.
applyLineTheme: (chart: LineChart, id: ChartThemeId) => voidapplyStockTheme
Apply a public theme to a stock chart.
applyStockTheme: (chart: StockChart, id: ChartThemeId) => voidgetLineThemePreset
Return a public theme without requiring the stock package's declarations.
getLineThemePreset: (id: ChartThemeId) => LineThemePresetgetStockThemePreset
Return a public theme without requiring the line package's declarations.
getStockThemePreset: (id: ChartThemeId) => StockThemePresetgetThemePreset
Return an immutable public preset, throwing for an unknown runtime value.
getThemePreset: (id: ChartThemeId) => ChartThemePreset