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
  • Weekly activity heatmap
  • Requests by weekday and time
  • Weekday by hour
  • Recommendations
  • Usage boundaries
  • API reference

Charts

Heatmap

Compares labeled matrix values with a theme-aware color scale and exact accessible data table.

idle

Usage

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

Examples

Weekly activity heatmap

A heatmap with a missing observation and a text table equivalent.

Requests by weekday and time

Weekday by hour

Seven days by twelve two-hour buckets in a compact grid.

Recommendations

GuidancePractice
Do

Name both matrix dimensions and the value scale. Keep exact values available through the data table.

Usage boundaries

GuidanceBoundary
Scope

Color shows magnitude, not causation. Use a table when reading individual values is the primary task.

API reference

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

PropTypeDefaultDescription
aria-labelstringRequiredNames the chart and its data table.
columns / rowsreadonly string[] / readonly HeatmapRow[]RequiredProvides unique labels and rectangular row values. Values are finite non-negative numbers or null for missing observations.
valueLabelstringValueNames values in the legend and tooltip.
maxnumberObserved maximumSets the upper color-scale value. Values above it use the highest color bucket.
formatValue(value: number) => stringString(value)Formats numeric values in tooltips, the legend, and the data table.
toneChartSeriesToneseries1Selects a supported semantic chart tone.
PreviousFunnelNextMetric Trend
Active users
1,892
+5.2%
000204060810121416182022MonTueWedThuFriSatSun
Low 0High 96No data
Active users by weekday and hour values
Row000204060810121416182022
Mon8822365064789278645036
Tue9923375165799379655137
Wed101024385266809480665238
Thu111125395367819581675339
Fri121226405468829682685440
Sat131319253137434943373125
Sun141420263238445044383226
MonTueWedThuFriDesignEngineering
Low 0High 7No data
Weekly activity by team values
RowMonTueWedThuFri
Design35241
Engineering647No data5

Requests by weekday and time

Weekly activity · requests per period

Peak requests
24
Wednesday afternoon
MonTueWedThuFriSatSunMorningAfternoonEveningNight
Low 0High 24No data
Requests by weekday and time values
RowMonTueWedThuFriSatSun
Morning121619152190
Afternoon182024172211No data
Evening7811131062
Night1021341
000204060810121416182022MonTueWedThuFriSatSun
Low 0High 96No data
Active users by weekday and hour values
Row000204060810121416182022
Mon8822365064789278645036
Tue9923375165799379655137
Wed101024385266809480665238
Thu111125395367819581675339
Fri121226405468829682685440
Sat131319253137434943373125
Sun141420263238445044383226