Lumagrid
    Preparing search index...

    Interface ChartPlugin<TData, TTheme, TConfig>

    A chart integration: adapters from Lumagrid data and theme plus the Renderer component that draws the chart. The renderer field is named Renderer (not component).

    interface ChartPlugin<
        TData = unknown,
        TTheme = unknown,
        TConfig = Record<string, unknown>,
    > {
        dataAdapter: (data: TransformedData, config?: TConfig) => TData;
        id: string;
        label?: string;
        Renderer: ComponentType<RendererProps<TData, TTheme, TConfig>>;
        themeAdapter: (theme: ThemeDefinition, config?: TConfig) => TTheme;
    }

    Type Parameters

    • TData = unknown
    • TTheme = unknown
    • TConfig = Record<string, unknown>
    Index
    dataAdapter: (data: TransformedData, config?: TConfig) => TData

    Converts Lumagrid TransformedData into whatever format this library expects. Called on every render when data or config changes.

    id: string

    Unique identifier used to register and look up this plugin.

    label?: string

    Human-readable display name for the tab strip. Defaults to id.

    Renderer: ComponentType<RendererProps<TData, TTheme, TConfig>>

    The actual chart component. Receives adapted data and theme — no Lumagrid internals.

    themeAdapter: (theme: ThemeDefinition, config?: TConfig) => TTheme

    Converts Lumagrid ThemeDefinition into the styling tokens this library expects. Called on every render when the theme changes.