@jsfkit/types
    Preparing search index...

    Type Alias ChartFieldEncoding

    Maps one data field to a visual channel.

    type ChartFieldEncoding = {
        field: string;
        levels?: string[];
        scale?: string;
    }
    Index

    Properties

    Properties

    field: string

    The field to encode. For multi-level categories, this is the innermost level.

    levels?: string[]

    For multi-level categories, the fields of the outer levels, from the outermost level inward. For example, a Year > Quarter axis has levels: ['year'] and field: 'quarter'.

    scale?: string

    The scale that maps the field's values, named by its id. Optional for channels without a scale, such as text.