eurostat-map
    Preparing search index...

    Interface EncodingConfig

    Configuration for mapping a named stat dataset to a visual channel.

    interface EncodingConfig {
        stat?: string;
        stats?: string[];
        by?: "value" | "category";
        type?:
            | "categorical"
            | "linear"
            | "sqrt"
            | "threshold"
            | "quantile"
            | "bivariate"
            | "trivariate";
        scale?: "linear"
        | "sqrt"
        | "threshold"
        | "quantile";
        range?: string[] | [number, number];
        values?: (string | number)[] | Record<string, string | number>;
        labels?: string[] | Record<string, string>;
        categoryCodes?: string[];
        classes?: number;
        thresholds?: number[];
        scheme?: string | Function;
        unitText?: string;
    }
    Index

    Properties

    stat?: string

    Name of a dataset registered with map.stat(name, config).

    stats?: string[]

    Names of datasets for multi-stat encodings such as bivariate color.

    by?: "value" | "category"

    Whether the encoding is based on raw values or category codes.

    type?:
        | "categorical"
        | "linear"
        | "sqrt"
        | "threshold"
        | "quantile"
        | "bivariate"
        | "trivariate"

    Encoding type.

    scale?: "linear" | "sqrt" | "threshold" | "quantile"

    Scale type.

    range?: string[] | [number, number]

    Numeric or color output range.

    values?: (string | number)[] | Record<string, string | number>

    Explicit encoded values, for example category colors.

    labels?: string[] | Record<string, string>

    Labels keyed by category code or value.

    categoryCodes?: string[]

    Category codes when using array-based values or labels.

    classes?: number

    Number of classes for classified encodings.

    thresholds?: number[]

    Threshold values for threshold encodings.

    scheme?: string | Function

    Color scheme name or function.

    unitText?: string

    Optional unit override for this encoding.