interface ChartTableOptions {
    background?: string;
    borderColor?: string;
    borderWidth: number;
    cellHeight: number;
    cellWidth: number | readonly number[] | "auto";
    fontSize: number | "auto";
    frameColor?: string;
    frameWidth?: number;
    heightPercent?: number;
    id?: string;
    margin: number;
    position: TablePosition;
    rowWeights?: readonly number[];
    widthPercent?: number;
}

Properties

background?: string

Backdrop behind the whole grid, drawn before the cells.

borderColor?: string

Grid line colour. Omit to draw no grid.

borderWidth: number
cellHeight: number
cellWidth: number | readonly number[] | "auto"

Column width in media px. A per-column array sizes each one separately.

'auto' measures instead: every column takes the width of its own widest cell at the size that cell will be drawn at. A grid whose cells are sentences rather than numbers cannot be sized by a caller who has not measured the text, and a fixed width there is a column of readings running into the column beside it.

fontSize: number | "auto"

Type size in media px, or 'auto' to fit each cell: as large as its row allows, shrunk until its text also fits its column. A stretched grid with one long label would otherwise either clip that cell or be sized down as a whole to suit it.

frameColor?: string

Outer frame, independent of cell borders. Omit to draw no frame.

frameWidth?: number

Outer frame width in media px. Defaults to 1 when a frame color is supplied.

heightPercent?: number

Table height as a percentage of the plot, 0 or omitted to size from cellHeight.

id?: string

Hit-test id, so a host can route clicks the way it does for other primitives.

margin: number

Gap from the pane edge, media px.

position: TablePosition
rowWeights?: readonly number[]

Relative row heights, one per row, defaulting to 1. A separator row is the reason this exists: stretched to fill a pane, an equal split makes a rule between two sections as tall as the sections themselves.

widthPercent?: number

Table width as a percentage of the plot, 0 or omitted to size from cellWidth instead. Column proportions are preserved, so a per-column cellWidth array still controls the relative widths, and the percentage only decides the total.