eurostat-map
    Preparing search index...

    Interface FlowColorLegendConfig

    Configuration for flow color legend in flow maps.

    interface FlowColorLegendConfig {
        title?: string;
        titlePadding?: number;
        marginTop?: number;
        items?: { label: string; color: string }[];
        ticks?: boolean;
    }
    Index

    Properties

    title?: string

    Title for the flow color legend.

    titlePadding?: number

    Padding between title and legend content in pixels.

    0
    
    marginTop?: number

    Top margin for the flow color legend in pixels.

    50
    
    items?: { label: string; color: string }[]

    User-defined legend items for custom flow color function.

    ticks?: boolean

    Whether to use labels as ticks.

    false