eurostat-map
    Preparing search index...

    Interface BarChartWidthLegendConfig

    Configuration for the width legend in grouped-mode bar chart maps (data-driven bar width).

    interface BarChartWidthLegendConfig {
        title?: string;
        titlePadding?: number;
        marginTop?: number;
        barHeight?: number;
        offsetX?: number;
        values?: number[];
        labelFormatter?: (value: number) => string;
    }
    Index

    Properties

    title?: string

    Title for the width legend.

    'Bar width'
    
    titlePadding?: number

    Padding between title and legend content in pixels.

    10
    
    marginTop?: number

    Top margin (distance from the size legend) in pixels.

    20
    
    barHeight?: number

    Height of the example bars in pixels.

    8
    
    offsetX?: number

    Horizontal offset in pixels applied to the legend content.

    10
    
    values?: number[]

    Custom values to display. If null, auto-generates [max, mid, 10% max].

    labelFormatter?: (value: number) => string

    Custom formatter function for legend labels.