mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 15:02:28 +08:00

* Fixed naming conventions for several visualizations * Fixed naming conventions * Fixed a missed refernce * Apply suggestions from code review Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com> * Fixed prettier linting error --------- Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
54 lines
1.7 KiB
Markdown
54 lines
1.7 KiB
Markdown
---
|
|
aliases:
|
|
- ../../features/panels/text/
|
|
- ../../panels/visualizations/text-panel/
|
|
- ../../reference/alertlist/
|
|
- ../../visualizations/text-panel/
|
|
keywords:
|
|
- grafana
|
|
- text
|
|
- documentation
|
|
- panel
|
|
labels:
|
|
products:
|
|
- cloud
|
|
- enterprise
|
|
- oss
|
|
title: Text
|
|
weight: 100
|
|
---
|
|
|
|
# Text
|
|
|
|
Text visualizations enable you to directly include text or HTML in your dashboards. This can be used to add contextual information and descriptions or embed complex HTML.
|
|
|
|
## Mode
|
|
|
|
**Mode** determines how embedded content appears.
|
|
|
|
### Markdown
|
|
|
|
This option formats the content as [markdown](https://en.wikipedia.org/wiki/Markdown).
|
|
|
|
### HTML
|
|
|
|
This setting renders the content as [sanitized](https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/text/sanitize.ts) HTML. If you require more direct control over the output, you can set the
|
|
[disable_sanitize_html][] flag which enables you to directly enter HTML.
|
|
|
|
### Code
|
|
|
|
This setting renders content inside a read-only code editor. Select an appropriate language to apply syntax highlighting
|
|
to the embedded text.
|
|
|
|
## Variables
|
|
|
|
[Variables][] in the content will be expanded for display.
|
|
|
|
{{% docs/reference %}}
|
|
[disable_sanitize_html]: "/docs/grafana/ -> /docs/grafana/<GRAFANA VERSION>/setup-grafana/configure-grafana#disable_sanitize_html"
|
|
[disable_sanitize_html]: "/docs/grafana-cloud/ -> /docs/grafana/<GRAFANA VERSION>/setup-grafana/configure-grafana#disable_sanitize_html"
|
|
|
|
[Variables]: "/docs/grafana/ -> /docs/grafana/<GRAFANA VERSION>/dashboards/variables/variable-syntax"
|
|
[Variables]: "/docs/grafana-cloud/ -> /docs/grafana/<GRAFANA VERSION>/dashboards/variables/variable-syntax"
|
|
{{% /docs/reference %}}
|