| sparkline |
component |
ts |
ui |
1.0.0 |
impure |
Sparkline(props: SparklineProps): JSX.Element |
Mini gráfico inline SVG puro (sin Recharts) con variantes line, area y bar. Para KPI cards y tablas. |
| sparkline |
| chart |
| inline |
| svg |
| component |
| ui |
| visualization |
|
|
|
|
false |
|
|
false |
|
|
frontend/functions/ui/sparkline.tsx |
| name |
type |
required |
description |
| data |
number[] |
true |
Array de valores numéricos |
|
| name |
type |
required |
description |
| variant |
'line' | 'area' | 'bar' |
false |
Tipo de visualización |
|
| name |
type |
required |
description |
| color |
string |
false |
Color del gráfico |
|
| name |
type |
required |
description |
| colors |
string[] |
false |
Colores por barra para variant 'bar'. Cicla si es más corto que data. |
|
| name |
type |
required |
description |
| width |
number |
false |
Ancho en px (default 80) |
|
| name |
type |
required |
description |
| height |
number |
false |
Alto en px (default 24) |
|
|
|
false |
react |
|
https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/Bl4cksmith/Frontend_Library |
MIT |
frontend/src/components/ui/sparkline.tsx |