interface ChartTableOptions {
    background?: string;
    borderColor?: string;
    borderWidth: number;
    cellHeight: number;
    cellWidth: number | readonly number[];
    fontSize: 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[]

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

fontSize: number
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.