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
  • Team activity
  • Recommendations
  • Usage boundaries
  • API reference

Charts

Chart Frame

A responsive, accessible host for typed TanStack Charts definitions.

idle

Usage

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

Examples

Team activity

Recommendations

GuidancePractice
Do

Name the chart's question and provide readable units. Keep detailed values available beyond pointer hover.

Usage boundaries

GuidanceBoundary
Scope

The chart definition owns the plot. Aggregation, filtering, and a readable data alternative belong to the application.

API reference

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

PropTypeDefaultDescription
ChartFrameChartFrameProps<TDatum, TXValue, TYValue>Responsive widthHosts a typed TanStack Charts definition and preserves datum inference for callbacks.
aria-labelstringRequiredNames the chart surface for assistive technology.
height / aspectRationumber320px heightChoose fixed height or a positive width-to-height ratio.
initialWidthnumber640Sets deterministic server and first-frame width before responsive measurement.
onFocusChange / onSelectInferred chart callbacksOptionalReceive typed points from chart-owned keyboard and pointer interactions.
renderTooltipBodyChartTooltipBodyRenderContext<TDatum, TXValue, TYValue>Engine tooltipProvides caller-authored content inside the chart engine's tooltip surface.
PreviousCategory ComparisonNextChart Legend
Monthly signups from January to April.JanFebMarApr0102030

Team activity

January–April 2026

Active teams in April
58
16 more than January
  • Active teams
  • New teams
Active and newly created teams from January through April.JanFebMarApr1020304050