Interface INumbersDesc

interface INumbersDesc {
    color?: string;
    colorMapping?: string | ITypedDump | ((v) => string);
    dataLength?: number;
    domain?: [number, number];
    filterAccuracy?: number;
    labels?: string[];
    map?: ITypedDump;
    numberFormat?: string;
    range?: [number, number];
    showMinimumRepresentation?: boolean;
    sort?: EAdvancedSortMethod;
}

Hierarchy (view full)

Properties

color?: string

Deprecated

use colorMapping instead

colorMapping?: string | ITypedDump | ((v) => string)

color mapping

Type declaration

    • (v): string
    • Parameters

      • v: number

      Returns string

dataLength?: number
domain?: [number, number]

either map or domain should be available

filterAccuracy?: number

The accuracy defines the deviation of values to the applied filter boundary. Use an accuracy closer to 0 for columns with smaller numbers (e.g., 1e-9).

Default

0.001
labels?: string[]

dump of mapping function

numberFormat?: string

d3 formatting option

Default

.3n
range?: [number, number]

Default

[0,1]
showMinimumRepresentation?: boolean

whether to render a representation of the minimum value as some visual glyph i.e. a bar with 1 px instead of 0 px

Default

false