eurostat-map
    Preparing search index...

    Interface SparkMapConfig

    Configuration for sparkline maps.

    interface SparkMapConfig {
        svgId?: string;
        containerId?: string;
        proj?: string;
        projectionFunction?: () => any;
        scale?: "60M" | "20M" | "10M" | "03M" | "01M";
        nutsLevel?: number;
        nutsYear?: string | number;
        geoCenter?: [number, number];
        pixSize?: number;
        geo?: string;
        width?: number;
        height?: number;
        title?: string;
        subtitle?: string;
        bottomText?: string;
        botTxtFontSize?: number;
        botTxtPadding?: number;
        botTxtTooltipMessage?: string;
        footnote?: string;
        source?: string;
        stat?: StatConfig;
        tooltip?: TooltipConfig;
        insets?: InsetConfig[];
        zoomExtent?: [number, number];
        showBtns?: boolean;
        coastal?: boolean;
        coastalMarginWidth?: number;
        coastalMarginColor?: string;
        drawGraticule?: boolean;
        graticuleStyle?: any;
        borderWidth?: number;
        borderColor?: string;
        labelling?: boolean;
        labelSizeThreshold?: number;
        labelOpacity?: number;
        logoURL?: string;
        onBuild?: (map: MapInstance) => void;
        sparkType?: "area" | "line" | "bar";
        sparkLineColor?:
            | string
            | ((value: number, index: number, data: any[]) => string);
        sparkAreaColor?:
            | string
            | ((value: number, index: number, data: any[]) => string);
        sparkLineWidth?: number;
        sparkLineHeight?: number;
        sparkLineStrokeWidth?: number;
        sparkLineOpacity?: number;
        sparkLineCircleRadius?: number;
        sparkTooltipChart?: {
            width: number;
            height: number;
            margin: { left: number; right: number; top: number; bottom: number };
            circleRadius: number;
        };
        sparkLineOffsets?: { x: number; y: number };
        showOnlyWhenComplete?: boolean;
        sparkLineChartFunction?: (
            node: any,
            data: any[],
            width: number,
            height: number,
            isForTooltip?: boolean,
        ) => void;
        sparkYScale?: any;
        legend?: false | SparklineLegendConfig;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Properties

    svgId?: string
    containerId?: string
    proj?: string
    projectionFunction?: () => any
    scale?: "60M" | "20M" | "10M" | "03M" | "01M"
    nutsLevel?: number
    nutsYear?: string | number
    geoCenter?: [number, number]
    pixSize?: number
    geo?: string
    width?: number
    height?: number
    title?: string
    subtitle?: string
    bottomText?: string
    botTxtFontSize?: number
    botTxtPadding?: number
    botTxtTooltipMessage?: string
    footnote?: string
    source?: string
    stat?: StatConfig
    tooltip?: TooltipConfig
    insets?: InsetConfig[]
    zoomExtent?: [number, number]
    showBtns?: boolean
    coastal?: boolean
    coastalMarginWidth?: number
    coastalMarginColor?: string
    drawGraticule?: boolean
    graticuleStyle?: any
    borderWidth?: number
    borderColor?: string
    labelling?: boolean
    labelSizeThreshold?: number
    labelOpacity?: number
    logoURL?: string
    onBuild?: (map: MapInstance) => void
    sparkType?: "area" | "line" | "bar"
    sparkLineColor?:
        | string
        | ((value: number, index: number, data: any[]) => string)
    sparkAreaColor?:
        | string
        | ((value: number, index: number, data: any[]) => string)
    sparkLineWidth?: number
    sparkLineHeight?: number
    sparkLineStrokeWidth?: number
    sparkLineOpacity?: number
    sparkLineCircleRadius?: number
    sparkTooltipChart?: {
        width: number;
        height: number;
        margin: { left: number; right: number; top: number; bottom: number };
        circleRadius: number;
    }
    sparkLineOffsets?: { x: number; y: number }
    showOnlyWhenComplete?: boolean
    sparkLineChartFunction?: (
        node: any,
        data: any[],
        width: number,
        height: number,
        isForTooltip?: boolean,
    ) => void
    sparkYScale?: any
    legend?: false | SparklineLegendConfig