Overview
The Time Series panel is the primary visualization for displaying metrics over time. It supports:- Multiple draw styles (lines, bars, points)
- Stacking and grouping
- Dual Y-axes
- Annotations and exemplars
- Interactive tooltips and legends
Panel Options
The Time Series panel is defined inpublic/app/plugins/panel/timeseries/module.tsx:15:
Tooltip Options
Control how data is displayed on hover:single- Show only the closest seriesmulti- Show all series at the current timenone- Disable tooltips
Legend Options
Time Zone
Configure the display time zone:Field Configuration
Field config options are defined inpublic/app/plugins/panel/timeseries/config.ts:97.
Graph Styles
Draw Style
Choose how the data is rendered:public/app/plugins/panel/timeseries/config.ts:29:
Line Interpolation
Control how points are connected:Gradient Mode
Apply color gradients to the fill:Stacking
Stack multiple series:Points
Configure point display:Axis Configuration
Configure Y-axis display:Null Value Handling
Control how gaps in data are displayed:Thresholds
Display threshold lines or areas:Panel JSON Example
Advanced Features
Annotations
The Time Series panel supports annotations with the plugin configured atpublic/app/plugins/panel/timeseries/module.tsx:33:
- Vertical lines
- Regions (time ranges)
- Points on the graph
Exemplars
Exemplars are trace samples linked to metrics, displayed as special markers on the graph.Transform
Apply transformations to series:Migration from Old Graph Panel
The Time Series panel includes a migration handler atpublic/app/plugins/panel/timeseries/migrations.ts that automatically converts old graph panel configurations.
Implementation Details
The Time Series panel uses theTimeSeries component from app/core/components/TimeSeries/ which renders using the uPlot charting library for high-performance rendering.
Key files:
public/app/plugins/panel/timeseries/module.tsx- Plugin definitionpublic/app/plugins/panel/timeseries/TimeSeriesPanel.tsx- Component implementationpublic/app/plugins/panel/timeseries/config.ts- Field configurationpublic/app/plugins/panel/timeseries/panelcfg.gen.ts- Generated types
Related Resources
Table Panel
Display data in tabular format
Stat Panel
Show single statistical values