@brickslab./ui-webAnalytics
Color-intensity matrix for aggregated Likert or cross-tab data with optional scale legend.
Likert response matrix
Props
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
rows | string[] | — | ✓ | Row labels. |
cols | string[] | — | ✓ | Column labels. |
values | number[][] | — | ✓ | 2D matrix — values[rowIndex][colIndex]. |
min | number | — | — | Minimum value for color scale. Defaults to data minimum. |
max | number | — | — | Maximum value for color scale. Defaults to data maximum. |
showScale | boolean | true | — | Shows a color scale legend below the matrix. |
Override rapide
Tous les paramètres listés dans cette table sont overrideables via les props. Utilisez ce squelette comme point de départ.
<MyComponent
rows="..."
cols="..."
values={0}
min={0}
max={0}
showScale={true}
/>rowscolsvaluesminmaxshowScale