Interface IScriptDesc

interface IScriptDesc {
    color?: string;
    colorMapping?: string | ITypedDump | ((v) => string);
    description?: string;
    domain?: [number, number];
    fixed?: boolean;
    frozen?: boolean;
    groupRenderer?: string;
    label: string;
    labelAsHTML?: boolean | IStyleHTMLWrapper;
    map?: ITypedDump;
    numberFormat?: string;
    range?: [number, number];
    renderer?: string;
    script?: string;
    summary?: string;
    summaryAsHTML?: boolean | IStyleHTMLWrapper;
    summaryRenderer?: string;
    type: string;
    visible?: boolean;
    width?: number;
}

Hierarchy (view full)

Properties

color?: string

color of this column

Deprecated

not used anymore

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

color mapping

Type declaration

    • (v): string
    • Parameters

      • v: number

      Returns string

description?: string

column description

domain?: [number, number]

either map or domain should be available

fixed?: boolean

whether the column can be removed or not

Default

false
frozen?: boolean

frozen column

Default

isSupportType
groupRenderer?: string

default group renderer to use

label: string

label of the column

labelAsHTML?: boolean | IStyleHTMLWrapper

whether to render the label as HTML (unsafe) or a custom function to convert a column to its summary label in HTML

Default

false

dump of mapping function

numberFormat?: string

d3 format number Format

Default

0.3n
range?: [number, number]

Default

[0,1]
renderer?: string

default renderer to use

script?: string

the function to use, it has two parameters: children (current children) and values (their row values)

Default

'return Math.max.apply(Math,values)'
summary?: string

column summary line (subtitle)

summaryAsHTML?: boolean | IStyleHTMLWrapper

whether to render the description as HTML (unsafe) or a custom function to convert a column to its summary label in HTML

Default

false
summaryRenderer?: string

default summary renderer to use

type: string

the column type

visible?: boolean

is this column visible by default

Default

true
width?: number

initial width of the column

Default

100 or 200 for strings