Charts
Time Series
Plots values against a UTC time scale with gaps and formats values on axes and tooltips.
idle
Usage
Examples
Daily visitors
A time series with UTC dates and a gap for a missing observation.
Daily sign-ins
Recommendations
| Guidance | Practice |
|---|---|
| Do | Label the series and units. Choose the reporting timezone explicitly and preserve gaps for missing observations. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| | Required | Uses unique integer epoch milliseconds and finite values; null marks a visual gap. |
| | Required | Names the series, chart, and explicit timezone for displayed dates. |
| | "en-US" / "series1" / "chart" | Sets deterministic number and date formatting, series color, and chart density. |
| | Locale number formatting | Formats tooltip values; axis labels use formatAxisValue when supplied, then formatValue, then locale defaults. |
| | Optional | Draws a muted dashed reference series, such as last year, on the same scales. |
| | true | Shows the series legend; set false when a surrounding card renders it. |