eurostat-map
    Preparing search index...

    Interface WaffleColorLegendConfig

    Configuration for color legend in waffle chart maps.

    interface WaffleColorLegendConfig {
        title?: string;
        titlePadding?: number;
        marginTop?: number;
        labelOffsets?: { x: number; y: number };
        shapeWidth?: number;
        shapeHeight?: number;
        shapePadding?: number;
        noData?: boolean;
        noDataText?: string;
    }
    Index

    Properties

    title?: string

    Title for the color legend.

    titlePadding?: number

    Padding between title and legend content in pixels.

    10
    
    marginTop?: number

    Top margin (distance from size legend) in pixels.

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

    Offset adjustments for labels.

    { x: 5, y: 5 }
    
    shapeWidth?: number

    Width of color swatches in pixels.

    25
    
    shapeHeight?: number

    Height of color swatches in pixels.

    20
    
    shapePadding?: number

    Padding between swatches in pixels.

    1
    
    noData?: boolean

    Whether to show a "no data" item.

    true
    
    noDataText?: string

    Text label for "no data" item.

    'No data'