Skip to content
silverpoint
Documentation menu

Concepts

Common props

The props every chart takes, besides its own. Names follow each framework: camelCase in React and Angular, kebab-case in Vue templates, snake_case in Reflex.

Defaults

PropDefaultWhat it does
datademo datasetThe rows to draw. Without it the demo dataset renders; accessor props are ignored, every other prop applies.
ground / substrate / mode'silverpoint' / 'cream' / 'ink'Style; mode 'precision' turns off inking.
seed, idderived, stableThe hand drawing is deterministic: same props, same strokes.
height, width160, container widthSize of the drawing area in px.
chrome'card''bare' draws only the plot.
title, badge, value, unit, footerLeft, footerRight—The card's text.
label, description, dataTablefrom title, —, 'hidden'Accessibility.
locale, numberFormatenvironmentNumber formatting (Intl.NumberFormatOptions).
hatchFill'tile''per-shape' gives richer hatching at a much greater weight.

Reference

React / AngularVueReflexTypeDescription
datadatadatareadonly Datum[]Rows to draw. If omitted, the demo dataset is rendered (REQ-093) and the accessor props (…_key, keys, names) are ignored.
groundgroundgroundGroundRefStyle ground: silverpoint or cyanotype, or a ground object. Defaults to the app provider's, or silverpoint.
substratesubstratesubstrateSubstrateNamePrepared substrate within the ground (REQ-046).
modemodemodeInkModeink by default; precision disables inking (REQ-021).
seedseedseedSeedSeed. If omitted, it is derived from id stably (REQ-003).
idididstringStable identifier. If omitted, it is generated deterministically.
heightheightheightnumberHeight of the drawing area in px. Width is the container's unless pinned.
widthwidthwidthnumber—
chromechromechrome'card' | 'bare'card draws the full frame; bare only the drawing area (REQ-095).
hatchFillhatch-fillhatch_fill'tile' | 'per-shape'How areas are filled (REQ-029).
titletitletitlestring—
badgebadgebadgestring—
valuevaluevaluestring | number—
unitunitunitstring—
footerLeftfooter-leftfooter_leftstring—
footerRightfooter-rightfooter_rightstring—
labellabellabelstringAccessible name. If omitted, it is derived from title (REQ-120).
descriptiondescriptiondescriptionstringLong description for screen readers (REQ-120).
dataTabledata-tabledata_table'visible' | 'hidden' | 'none'Tabular alternative; hidden leaves it for assistive technology only (REQ-121).
localelocalelocalestring—
numberFormatnumber-formatnumber_formatIntl.NumberFormatOptions—
classNameclass-nameclass_namestring—

Accessor props

Each chart names the fields of your rows with accessor props: xKey, valueKey, nameKey, keys… Their names and meaning are on each chart's reference page. In JavaScript an accessor can also be a function of the row.