eurostat-map
    Preparing search index...

    Interface FlowWidthLegendConfig

    Configuration for flow width legend in flow maps.

    interface FlowWidthLegendConfig {
        title?: string;
        titlePadding?: number;
        values?: number[];
        marginTop?: number;
        labelFormatter?: (value: number) => string;
        labels?: string[];
        color?: string;
        orientation?: "vertical" | "horizontal";
        segments?: number;
        width?: number;
        maxMin?: boolean;
    }
    Index

    Properties

    title?: string

    Title for the flow width legend.

    titlePadding?: number

    Padding between title and legend content in pixels.

    20
    
    values?: number[]

    Custom values to display in the flow width legend. If null, values are auto-generated.

    marginTop?: number

    Top margin for the flow width legend in pixels.

    15
    
    labelFormatter?: (value: number) => string

    Custom formatter function for legend labels.

    labels?: string[]

    Manual override for legend labels.

    color?: string

    Color of the flow lines in the legend.

    '#616161'
    
    orientation?: "vertical" | "horizontal"

    Orientation of the flow width legend.

    'horizontal'
    
    segments?: number

    Number of segments to display.

    3
    
    width?: number

    Width of the legend in pixels.

    150
    
    maxMin?: boolean

    Whether to show max/min labels.

    false