--- aliases: - ../linking/data-link-variables/ - ../linking/data-links/ - ../panels/configure-data-links/ - ../reference/datalinks/ - ../variables/url-variables/ - ../variables/variable-types/url-variables/ keywords: - grafana - url variables - variables - data link - documentation - playlist labels: products: - cloud - enterprise - oss menuTitle: Configure data links title: Configure data links description: Configure data links to create links between dashboards and link to external resources weight: 80 --- # Configure data links Data links allow you to provide more granular context to your links. You can create links that include the series name or even the value under the cursor. For example, if your visualization shows four servers, you can add a data link to one or two of them. You can also link panels using data links. The link itself is accessible in different ways depending on the visualization. For the time series visualization you need to click a data point or line: ![Time series visualization with a data link displayed](/media/docs/grafana/panels-visualizations/screenshot-time-series-data-link-v10.3.png) For visualizations like stat, gauge, or bar gauge you can click anywhere on the visualization to open the context menu: ![Stat visualization with a data link displayed](/media/docs/grafana/panels-visualizations/screenshot-stat-data-link-v10.3.png) If there's only one data link in the visualization, clicking anywhere on the visualization opens the link rather than the context menu. ## Supported visualizations You can configure data links for the following visualizations: | | | | | -------------------------- | -------------------------------- | -------------------------------- | | [Bar chart][bar chart] | [Heatmap][heatmap] | [Status history][status history] | | [Bar gauge][bar gauge] | [Histogram][histogram] | [Table][table] | | [Candlestick][candlestick] | [Pie chart][pie chart] | [Time series][time series] | | [Canvas][canvas] | [Stat][stat] | [Trend][trend] | | [Gauge][gauge] | [State timeline][state timeline] | [XY chart][xy chart] | | [Geomap][geomap] | | | ## Data link variables Variables in data links let you send people to a detailed dashboard with preserved data filters. For example, you could use variables to specify a label, time range, series, or variable selection. To see a list of available variables, enter `$` in the data link **URL** field. {{% admonition type="note" %}} These variables changed in 6.4 so if you have an older version of Grafana, then use the version picker to select docs for an older version of Grafana. {{% /admonition %}} Azure Monitor, [CloudWatch][], and [Google Cloud Monitoring][] have pre-configured data links called _deep links_. You can also use template variables in your data links URLs. For more information, refer to [Templates and variables][]. ### Time range panel variables These variables allow you to include the current time range in the data link URL: | Variable | Description | | ------------------ | ------------------------------------------------------------------- | | `__url_time_range` | Current dashboard's time range (for example, `?from=now-6h&to=now`) | | `__from` | For more information, refer to [Global variables][]. | | `__to` | For more information, refer to [Global variables][]. | When you create data links using time range variables like `__url_time_range` in the URL, you have to form the query parameter syntax yourself; that is, you must format the URL by appending query parameters using the question mark (`?`) and ampersand (`&`) syntax. These characters aren't automatically generated. ### Series variables Series-specific variables are available under `__series` namespace: | Variable | Description | | --------------- | ---------------------- | | `__series.name` | Series name to the URL | ### Field variables Field-specific variables are available under `__field` namespace: | Variable | Description | | ------------------------ | --------------------------------------------------------------------------------------------------- | | `__field.name` | The name of the field | | `__field.labels.