Interface IScriptDesc

interface IScriptDesc {
    color?: string;
    colorMapping?: string | ITypedDump | (v: number) => 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 Summary)

Properties

color?: string

color of this column

not used anymore

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

color mapping

description?: string

column description

domain?: [number, number]

either map or domain should be available

fixed?: boolean

whether the column can be removed or not

false
frozen?: boolean

frozen column

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

false

dump of mapping function

numberFormat?: string

d3 format number Format

0.3n
range?: [number, number]
[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)

'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

false
summaryRenderer?: string

default summary renderer to use

type: string

the column type

visible?: boolean

is this column visible by default

true
width?: number

initial width of the column

100 or 200 for strings