Skip to content

Interface: TableTraceHeader ​

The header: fixed above the scrolling cells; drag a header cell to reorder columns.

Properties ​

PropertyTypeDefault valueDescription
align?PerPoint<"left" | "center" | "right">"center"Horizontal alignment of the text in its cell, one per column or, nested, per column and row.
fill?TableTraceHeaderFillundefinedCell background.
font?TableTraceHeaderFontundefinedFont of the header text. Defaults to layout.font.
format?DataColumnundefinedd3-format specifiers applied to numeric values (e.g. ,.2f, .1%), one per column or, nested, per column and row. Non-numeric values are shown as they are.
height?number28Height of the header rows in px. Rows grow to fit text that has spaces, line breaks or markup: its height plus 8 px of padding above and below (Plotly's cellPad).
line?TableTraceHeaderLineundefinedCell outlines.
prefix?PerPoint<string | number>undefinedText before each value, one per column or, nested, per column and row.
suffix?PerPoint<string | number>undefinedText after each value, one per column or, nested, per column and row.
values?DataColumnundefinedHeader text, one entry per column: a value, or an array of values for several header rows. Plotly pseudo-HTML is accepted (tags are stripped until rich text lands; <br> breaks lines).

Released under the MIT License.