HomeLabHire Me
ml-ui111 components

Get started

IntroductionInstallation

UI

Dots

Dot AccordionDot CalendarDot CheckboxDot CodeDot CommandDot ContentsDot CountdownDot CrossingDot FuseDot GaugeDot InstallDot KnobDot LogosDot MenuDot PaginationDot PasswordDot Price RangeDot PricingDot ProgressDot QueueDot RatingDot Reading ProgressDot SelectDot SignupDot SliderDot StatusDot StepperDot SwitchDot TabsDot ToastDot TooltipFlip-Dot CounterLED Marquee

Dither

Dither AvatarDither BannerDither CompareDither GlobeDither PortraitDither SkeletonDither TrailDither UploadDot CookiesDot DialogDot KeysDot ReceiptDot VariantsLenticular Card

More

Pollen TrailSplit-FlapTheme Toggle

Text

Dither RotatorDot TypeEnigma TextInk Print

Data viz

Dots

Contribution FieldDot BarsDot ChartDot Waffle

Dither

Dither DensityDither MapDither Stack

Media

Dots

Dot EqualizerDot WaveformVoice Note

Dither

Dither Scrubber

AI

Agent StepsAnswer VersionsCitation ChipConfidence GlassContext MeterDiffusion ImageDiffusion TextDither MaskDoc ReaderDot DictationGenerate ButtonGhost TextModel PickerPrompt BarResponse ActionsRevising TextSpoken ReplyThinking OrbThinking TraceToken MeterToken StreamWord Alternatives

Useful

Arrival TimeBest ShotCareer LineForgiving SearchGesture PadHeard AsHonest PinImage PaletteLikeness GridNear Miss SearchRain DropsSoft CorrectSpending SortSticker LiftTaste Ledger

Backgrounds

ButterfliesDandelionsDuck PondFirefliesKoi PondLight WellMarigoldsTrain WindowWhite Blossom

ml-ui / Data viz

Dot Bars

For top pages, countries or referrers: biggest first, and past the row limit the tail folds into one Other row so the list never runs on. Each bar is lit in the accent for its share of the biggest, the last dot only partly, with the rest of the row dark dots like an LED panel that's off. Rows fill in from the top when it comes into view and slide to their new lengths when the data changes; point at one and the others dim while its share of the whole appears beside its value.

Needs: None. Canvas 2D.

Customize

Props

PropTypeDefaultDescription
data{ label: string; value: number }[]requiredThe items and their values, in any order.
maxnumber8Most rows shown; the rest fold into one “Other” row.
format(value: number) => string–How a value reads.
tonestring–The bars' colour. The page's accent by default.
pitchnumber3Size of one dot in px.
thicknessnumber3How many dots tall a bar is.
labelstring"Bars"What the list shows, for screen readers.
onSelect(item: { label: string; value: number }) => void–Called when a row is clicked. Rows become buttons when it's set.
classNamestring–Class on the list. It fills its container's width.
styleCSSProperties–Style on the list.
← Dither StackDot Chart →