Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Examples
  • Support resolution time
  • Recommendations
  • Usage boundaries
  • API reference

Charts

Distribution

Counts caller-provided numeric observations in equal-width bins across an explicit domain.

idle

Usage

import { Distribution } from "@mizen-labs/ui";

Examples

Support resolution time

Recommendations

GuidancePractice
Do

Set an explicit domain and a useful bin count. Describe the observations and show interval meaning.

Usage boundaries

GuidanceBoundary
Scope

The component counts supplied observations. Sampling, weighting, and statistical interpretation belong to the application.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
valuesreadonly number[]RequiredProvides finite observations inside the explicit domain.
domainreadonly [number, number]RequiredSets increasing inclusive bounds; values outside the domain are rejected.
binCountnumber8Sets the number of equal-width bins.
aria-label / seriesLabelstringRequiredNames the chart and its observation-count series.
locale / tonestring / ChartSeriesTone"en-US" / "series1"Sets number formatting and the semantic chart color.
formatValue / formatAxisValue(value: number) => stringLocale number formattingFormats tooltip intervals; axis labels use formatAxisValue when supplied, then formatValue, then locale defaults.
PreviousChart TooltipNextFunnel
Response times in minutes.0204060800123
  • Response time

Support resolution time

Resolution time · minutes

Tickets reviewed
36
Ten-minute intervals
0204060800481214
  • Tickets