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
  • Daily visitors
  • Daily sign-ins
  • Recommendations
  • Usage boundaries
  • API reference

Charts

Time Series

Plots values against a UTC time scale with gaps and formats values on axes and tooltips.

idle

Usage

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

Examples

Daily visitors

A time series with UTC dates and a gap for a missing observation.

Daily sign-ins

Recommendations

GuidancePractice
Do

Label the series and units. Choose the reporting timezone explicitly and preserve gaps for missing observations.

Usage boundaries

GuidanceBoundary
Scope

Do not turn missing data into zero. Aggregation intervals and timezone meaning belong to the application.

Scope

Put formatter callbacks in a Client Component. Data and timeZone remain caller-owned.

API reference

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

PropTypeDefaultDescription
pointsreadonly { time: number; value: number | null }[]RequiredUses unique integer epoch milliseconds and finite values; null marks a visual gap.
seriesLabel / aria-label / timeZonestringRequiredNames the series, chart, and explicit timezone for displayed dates.
locale / tone / presentationstring / ChartSeriesTone / "chart" | "sparkline""en-US" / "series1" / "chart"Sets deterministic number and date formatting, series color, and chart density.
formatValue / formatAxisValue(value: number) => stringLocale number formattingFormats tooltip values; axis labels use formatAxisValue when supplied, then formatValue, then locale defaults.
comparison{ label: string; points: TimeSeriesDatum[] }OptionalDraws a muted dashed reference series, such as last year, on the same scales.
legendbooleantrueShows the series legend; set false when a surrounding card renders it.
PreviousScore GaugeNextDiagram
Revenue
$18,240
+9.4%
JanFebMarAprMayJunJulAugSepOctNovDec$0$2K$4K$6K
Visitor counts by day, with one missing observation.Oct 1Oct 2Oct 3Oct 40100200300400
  • Visitors

Daily sign-ins

March 1–20, 2026 · America/Los Angeles

Latest reported day
17
One day unreported
Sign-ins from March 1 through March 20, 2026. One observation is missing.Mar 1Mar 3Mar 5Mar 7Mar 9Mar 11Mar 13Mar 15Mar 17Mar 1905101520
  • Sign-ins