eurostat-map
    Preparing search index...

    Interface SparklineScaleLegendConfig

    Configuration for scale legend in sparkline maps.

    interface SparklineScaleLegendConfig {
        title?: string;
        titlePadding?: number;
        showExampleChart?: boolean;
        showMaxRegion?: boolean;
        exampleData?: number[];
        tickCount?: number;
        tickFormat?: (value: number) => string;
        showXAxis?: boolean;
        xAxisRotation?: number;
        xAxisTickStep?: number;
        margin?: { top: number; right: number; bottom: number; left: number };
        lineOpacity?: number;
        lineStrokeWidth?: number;
    }
    Index

    Properties

    title?: string

    Title for the scale legend section.

    titlePadding?: number

    Padding between title and chart in pixels.

    5
    
    showExampleChart?: boolean

    Whether to show an example sparkline with averaged data.

    false
    
    showMaxRegion?: boolean

    Whether to show the region with maximum value.

    true
    
    exampleData?: number[]

    Custom example data for the sparkline. If null, uses averaged data.

    tickCount?: number

    Number of ticks on Y axis.

    5
    
    tickFormat?: (value: number) => string

    Custom tick format function for Y axis values.

    showXAxis?: boolean

    Whether to show X axis with date labels.

    true
    
    xAxisRotation?: number

    Rotation angle for X axis labels in degrees.

    -45
    
    xAxisTickStep?: number

    Step for showing X axis ticks (1 = every tick, 2 = every other, etc.).

    1
    
    margin?: { top: number; right: number; bottom: number; left: number }

    Margins around the sparkline cell. Defaults to match the map's sparkline chart margin.

    lineOpacity?: number

    Opacity of the sparkline.

    0.5
    
    lineStrokeWidth?: number

    Stroke width of the sparkline.

    1