docs/sources/visualizations/panels-visualizations/panel-overview/index.md
A Grafana panel is a visual representation of data composed of a query and a visualization. Within panels, you can apply transformations, which process the results of a query before they're passed on for visualization. You can also further customize a panel by formatting data and configuring visualization options.
Each panel has a query editor specific to the data source selected in the panel. The query editor allows you to build a query that returns the data you want to visualize.
Panels offer a wide variety of formatting and styling options, from applying colors based on field values to creating custom units. Each visualization also comes with options specific to it that give you further control over how your data is displayed. Panels can also be dragged, dropped, and resized to rearrange them on the dashboard.
To get started adding panels, ensure that you have configured a data source:
For details about using data sources, refer to Data sources.
For more information about managing data sources as an administrator, refer to Data source management.
{{< admonition type="note" >}} Data source management is only available in Grafana Enterprise and Grafana Cloud. {{< /admonition >}}
The following image and descriptions highlight the panel features:
To access the panel editor, hover the cursor over the top-right corner of any panel. Click the panel menu icon that appears and select Edit.
The panel menu also gives you access to several actions. If an option is only available in view mode or edit mode, that's indicated:
Dashboard data source to share the same query results across panels instead.Grafana has a number of keyboard shortcuts available specifically for panels. Press ? on your keyboard to display all keyboard shortcuts available in your version of Grafana.
By hovering over a panel with the mouse you can use some shortcuts that will target that panel.
e: Toggle panel edit viewv: Toggle panel full screen viewpu: Share linkpe: Share embedps: Share snapshotpx: Open panel in Explorepd: Duplicate Paneli: Inspectpl: Hide or show legendpr: Remove Panel{{< docs/public-preview product="Panel time settings" featureFlag="panelTimeSettings" >}}
You can configure the following settings to control the time range for a panel:
| Option | Description |
|---|---|
| Panel time range | Overrides the dashboard time range. Use one of the preset values or enter a custom value like 5m or 2h. |
| Time shift | Adds a time shift relative to the dashboard or panel time range. Use one of the preset values or enter a custom value like 5m or 2h. |
| Time comparison | <p>Compare data between two time ranges.</p><p>To try out this feature, enable the timeComparison feature toggle.</p> |
| Hide panel time range | Don't show the panel time range in the panel header. |
You can pan the panel time range left and right, and zoom it and in and out. This, in turn, changes the dashboard time range.
This feature is supported for the following visualizations:
Click and drag on the panel to zoom in on a particular time range.
The following screen recordings show this interaction in the time series and candlestick visualizations:
Time series
{{< video-embed src="/media/docs/grafana/panels-visualizations/recording-ts-time-zoom-in-mouse.mp4" >}}
Candlestick
{{< video-embed src="/media/docs/grafana/panels-visualizations/recording-candle-panel-time-zoom-in-mouse.mp4" >}}
Double-click anywhere on the panel to zoom out the time range.
The range doubles with each double-click, adding equal time to each side of the range. For example, if the original time range is from 9:00 to 9:59, the time range changes as follows with each double-click:
The following screen recordings demonstrate the preceding example in the time series and heatmap visualizations:
Time series
{{< video-embed src="/media/docs/grafana/panels-visualizations/recording-ts-time-zoom-out-mouse.mp4" >}}
Heatmap
{{< video-embed src="/media/docs/grafana/panels-visualizations/recording-heatmap-panel-time-zoom-out-mouse.mp4" >}}
Click and drag the x-axis area of the panel to pan the time range.
The time range shifts by the distance you drag. For example, if the original time range is from 9:00 to 9:59 and you drag 30 minutes to the right, the time range changes to 9:30 to 10:29.
The following screen recordings show this interaction in the time series visualization:
Time series
{{< video-embed src="/media/docs/grafana/panels-visualizations/recording-ts-time-pan-mouse.mp4" >}}
To add a panel to an empty dashboard, click or drag the panel onto the dashboard:
To add a panel to an existing dashboard, follow these steps:
Click Edit in the top-right corner of the dashboard.
Click the Add new element icon (blue plus sign).
{{< figure src="/media/docs/grafana/dashboards/screenshot-add-element-icon-v13.0.png" max-width="250px" alt="Add element icon" >}}
Click or drag a panel onto the dashboard.
To configure panels, refer to the following subtopics: