[v10.4.x] Docs: Add data links shared content (#88241)
* Docs: Add data links shared content (#86893)
* Added data link options shared file and added file to relevant visualizations
* Updated some text and links in canvas
* Added shared file to xy chart
* Fixed list of visualizations using shared file
* Removed unneeded level offset
* Removed future tense
* Update data links description
* Updated wording
* Removed redundant sentence
(cherry picked from commit 1ef0e240e9)
* Removed xy chart
* Converted docs refs to ref URIs
* Removed trailing slashes
This commit is contained in:
@@ -15,6 +15,17 @@ labels:
|
||||
- oss
|
||||
title: Canvas
|
||||
weight: 100
|
||||
refs:
|
||||
data-links:
|
||||
- pattern: /docs/grafana/
|
||||
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/configure-data-links/
|
||||
- pattern: /docs/grafana-cloud/
|
||||
destination: /docs/grafana-cloud/visualizations/panels-visualizations/configure-data-links/
|
||||
add-field-from-calculation-transform:
|
||||
- pattern: /docs/grafana/
|
||||
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/query-transform-data/transform-data/#add-field-from-calculation
|
||||
- pattern: /docs/grafana-cloud/
|
||||
destination: /docs/grafana-cloud/visualizations/panels-visualizations/query-transform-data/transform-data/#add-field-from-calculation
|
||||
---
|
||||
|
||||
# Canvas
|
||||
@@ -139,7 +150,7 @@ The inline editing toggle lets you lock or unlock the canvas. When turned off th
|
||||
|
||||
### Data links
|
||||
|
||||
Canvases support [data links](https://grafana.com/docs/grafana/latest/panels-visualizations/configure-data-links/). You can create a data link for a metric-value element and display it for all elements that use the field name by following these steps:
|
||||
Canvases support [data links](ref:data-links) for all elements except drone and button elements. You can add a data link by following these steps:
|
||||
|
||||
1. Set an element to be tied to a field value.
|
||||
1. Turn off the inline editing toggle.
|
||||
@@ -150,7 +161,7 @@ Canvases support [data links](https://grafana.com/docs/grafana/latest/panels-vis
|
||||
1. Hover over the element to display the data link tooltip.
|
||||
1. Click on the element to be able to open the data link.
|
||||
|
||||
If multiple elements use the same field name, and you want to control which elements display the data link, you can create a unique field name using the [add field from calculation transform](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/transform-data/#add-field-from-calculation). The alias you create in the transformation will appear as a field you can use with an element.
|
||||
If multiple elements use the same field name, and you want to control which elements display the data link, you can create a unique field name using the [add field from calculation transform](ref:add-field-from-calculation-transform). The alias you create in the transformation will appear as a field you can use with an element.
|
||||
|
||||
1. In the panel editor for the canvas, click the **Transform** tab.
|
||||
1. Select **Add field from calculation** from the list of transformations, or click **+ Add transformation** to display the list first.
|
||||
|
||||
Reference in New Issue
Block a user