Inline SVG trend line; tone follows series direction (sign discipline) unless overridden.
Anatomy
/\_/\__/ <- polyline, 1.25 stroke, buy/sell by direction 84 x 28 default box
Props
| Prop | Type | Default | Notes | ||
|---|---|---|---|---|---|
data | number[] | -- | Oldest -> newest; needs >= 2 points (else renders nothing). | ||
tone | "buy" | "sell" \ | "neutral"` | direction | Default: last >= first -> buy. |
label | string | -- | Sets role="img" + name; omitted = aria-hidden decorative. | ||
width / height | number | 84 / 28 | Viewbox + rendered size. | ||
className | string | -- | cn-merged. |
Motion
None (data surfaces never bounce).
A11y
- · Decorative by default (
aria-hidden); passlabelto name it as an image. - · Never the only carrier of direction -- pair with a signed value.