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

Dither Stack

For parts of a total over time, like revenue by plan. Each series is a band in its own ink with a solid ridge along its top and a stipple thinning down toward the band below, and a one-cell gap between bands, so they read apart even without colour. It prints in from the left the first time it's seen and eases to new data. Point at it, or focus it and use the arrow keys, for every series' value and the total at that point.

Needs: None. Canvas 2D.

Customize

Props

PropTypeDefaultDescription
series{ label: string; values: number[] }[]requiredThe series, bottom of the stack first, each with a value per point, oldest first.
labelsstring[]–A short name for each point, like “MAR”, read when you point at it.
format(value: number) => string–How a value reads.
heightnumber220Height of the plot in px. It fills its container's width.
tonesstring[]–A colour for each series, in order. The library's series colours by default.
cellnumber3Size of one dither cell in px.
labelstring"Stacked area"What the chart shows, for screen readers.
classNamestring–Class on the chart.
styleCSSProperties–Style on the chart.
← Dither MapDot Bars →