g3-toolkit API Reference
    Preparing search index...

    Interface SpecLegendProps

    interface SpecLegendProps {
        className?: string;
        collapsible?: boolean;
        defaultCollapsed?: boolean;
        labelFor?: (value: string) => string;
        spec: EncodingSpec;
        title?: string;
        ugm: UGM;
    }
    Index

    Properties

    className?: string
    collapsible?: boolean

    When true, render a header with a collapse/expand toggle so the legend can be tucked away (it can otherwise cover the canvas).

    defaultCollapsed?: boolean

    Initial collapsed state when collapsible (default false = open).

    labelFor?: (value: string) => string

    Display transform for categorical values (e.g. shorten IRIs to prefixed names). Affects labels only; resolution keys are raw.

    title?: string

    Header label shown when collapsible (default "Legend").

    ugm: UGM