eurostat-map
    Preparing search index...

    Interface ProportionalSymbolSizeLegendConfig

    Configuration for size legend in proportional symbol maps.

    interface ProportionalSymbolSizeLegendConfig {
        title?: string;
        titlePadding?: number;
        values?: number[];
        cellNb?: number;
        shapePadding?: number;
        shapeOffsets?: { x: number; y: number };
        shapeFill?: string;
        shapeStroke?: string;
        shapeStrokeWidth?: number;
        labelOffsets?: { x: number; y: number };
        decimals?: number;
        labelFormatter?: (value: number) => string;
        labels?: string[];
        noData?: boolean;
        noDataText?: string;
    }
    Index

    Properties

    title?: string

    Title for the size legend.

    titlePadding?: number

    Padding between title and legend content in pixels.

    15
    
    values?: number[]

    Manually defined raw data values for the size legend.

    cellNb?: number

    Number of elements to display in the legend.

    3
    
    shapePadding?: number

    Vertical distance between consecutive legend shape elements in pixels.

    15
    
    shapeOffsets?: { x: number; y: number }

    Offset adjustments for shapes.

    { x: 0, y: 0 }
    
    shapeFill?: string

    Fill color for shapes in the legend.

    'white'
    
    shapeStroke?: string

    Stroke color for shapes in the legend.

    shapeStrokeWidth?: number

    Stroke width for shapes in the legend in pixels.

    labelOffsets?: { x: number; y: number }

    Offset adjustments for labels.

    { x: 10, y: 0 }
    
    decimals?: number

    Number of decimal places for legend labels.

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

    Custom formatter function for legend labels.

    labels?: string[]

    User-defined labels for each size.

    noData?: boolean

    Whether to show a "no data" item.

    false
    
    noDataText?: string

    Text label for "no data" item.

    'No data'