Simal UI
Components

BucketBarChart

Import

import { BucketBarChart } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
buckets[]One entry per bar: { key, label, value }. key is identity, label is what renders.
maxValueFixes the scale. Without it bars are relative to the largest bucket, so a chart with one dominant value looks different from the same data with a cap.

Examples

Fixed Scale

Bars scale against maxValue when given, not against the largest bucket.

Single Bucket

On this page