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 Chart

The line is lit in the accent and the area under it is a blue-noise stipple, densest along the line and thinning toward the baseline. Move across it and a dotted guide follows from point to point with the value and its label above; at rest it shows the latest point. It can be focused and read point by point with the arrow keys, and it draws itself in from the left the first time it comes into view.

Needs: None. Canvas 2D.

Customize

Props

PropTypeDefaultDescription
datanumber[]requiredThe values, oldest first.
labelsstring[]–A short name for each point, like “OCT 12”, read beside the value.
format(value: number) => string–How a value reads.
heightnumber160Height in px. It fills its container's width.
zerobooleanfalseStart the scale at zero.
areabooleantrueA stipple under the line.
tonestring–The line's colour. The page's accent by default.
pitchnumber3Size of one dot in px.
labelstring"Chart"What the chart shows, for screen readers.
classNamestring–Class on the chart.
styleCSSProperties–Style on the chart.
← Dot BarsDot Waffle →