table
A table on the canvas, its rows written in the body or bound from an dataset.
On this page


#Attributes
dataA
dataset supplying the rows, in place of a body: table:#survey. With it, the body is ignored. Its column names are the header row.Can be written as shorthand:
table:valuecolumnsWhich columns of
data: to show, in order — plain column names, without #. Unwritten, every column in the dataset's order.header-rowThe first row is styled as a header. With
data:, the dataset's column names are that row.Also written:
headerDefault
trueheader-columnThe first column is styled as a header.
Also written:
header-colDefault
falsefooter-rowThe last row is styled as a footer.
Default
falsefooter-columnThe last column is styled as a footer.
Also written:
footer-colDefault
falsehighlight-rowsRows to highlight, counted from 1 with the header row included:
2, 2, 4, 2-4.Also written:
highlight-rowhighlight-columnsColumns to highlight, counted from 1 or written as letters:
2, B, B-C.Also written:
highlight-cols, highlight-col, highlight-columnhighlight-cellsCells to highlight, comma-separated. A cell is a column letter and a row number (
B2, rows counted with the header); a range joins two with a hyphen (A1-C3) and covers the block between them.Also written:
highlight-cellhighlight-colourThe highlight's colour.
paintAlso written:
highlight-colorDefault
bluedelimiterThe single character that separates cells in the body.
Also written:
delimDefault
|titleA caption set above the table. Rich text, so
Yield at $T = 300K$ sets the maths.Also written:
captionmodeHas no effect on how the table renders.
inlineenvironmentDefault
inline#Allowed content
Body { }Pipe-delimited table rows with inline Chalk formatting in cells — or none at all, when
data: supplies the rows from a dataset#Allowed in
#Examples
table{
Island | Area (km²) | Species
Baltra | 25.09 | 58
Bartolomé | 1.24 | 31
Santa Cruz | 903.82 | 444
}(
title: Three of the Galápagos
highlight-rows: 4
)table:#survey(
columns: island, species
highlight-columns: 2
)#Notes
- The body is one row per line, split into cells on
delimiter; each cell takes inline Chalk. - Nothing is padded: a row with a delimiter missing renders short, its cells under the wrong headings. An empty cell keeps its delimiters.
highlight-rows,highlight-columnsandhighlight-cellscount from 1 and count every row and column drawn, the header among them — so withheader-rowon, the first row of data is row 2.- A table bound to a dataset that is missing or not attached shows the reason in place of its rows.