@brickslab./ui-webAnalytics
Horizontal bar chart with single bar, stacked series, and histogram modes.
Bar
Stacked with legend
Normalized
Props
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
data | DistributionDataPoint[] | — | ✓ | Array of { label, value, series? }. |
type | "bar" | "stack" | "hist" | "bar" | — | Chart style. |
normalize | boolean | false | — | All bars fill 100% width (relative comparison). |
showLegend | boolean | false | — | Renders a series legend below the chart. |
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
data={[]}
type="bar"
normalize={false}
showLegend={false}
/>datatypenormalizeshowLegend