Skip to content

Interface: Histogram2dTraceTextfont ​

Font of the cell labels (texttemplate).

Properties ​

PropertyTypeDefault valueDescription
color?stringundefinedText color. Default: black or white, whichever contrasts with the cell.
family?stringundefinedCSS font-family list. Default: layout.font.family.
size?number | "auto""auto"Font size in CSS px, or 'auto': the largest size (up to layout.font.size) at which labels fit their cells. Minimum: 1
style?"normal" | "italic"undefinedFont style.
weight?number | "normal" | "bold"undefinedFont weight: a CSS numeric weight (1–1000), normal or bold. Range: 1 – 1000

Released under the MIT License.