mirror of https://github.com/grafana/grafana
Docs: refactors configure standard options (#52278)
* refactors configure standard options * makes prettierpull/52363/head
parent
1834973cc6
commit
433bb735de
@ -1,34 +0,0 @@ |
||||
--- |
||||
aliases: |
||||
- /docs/grafana/latest/panels/working-with-panels/apply-color-to-series/ |
||||
- /docs/sources/panels/working-with-panels/apply-color-to-series/ |
||||
title: Apply color to series and fields |
||||
weight: 50 |
||||
--- |
||||
|
||||
# Apply color to series and fields |
||||
|
||||
In addition to specifying color based on thresholds, you can configure the color of series and field data. The color options and their effect on the visualization depends on the visualization you are working with. Some visualizations have different color options. |
||||
|
||||
You can specify a single color, or select a continuous (gradient) color schemes, based on a value. |
||||
Continuous color interpolates a color using the percentage of a value relative to min and max. |
||||
|
||||
1. In panel display options, scroll to the **Standard options** or **override** section. |
||||
|
||||
1. Click the **Standard options Color scheme** drop-down, and select one of the following palettes: |
||||
|
||||
<div class="clearfix"></div> |
||||
|
||||
| Color mode | Description | |
||||
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | |
||||
| **Single color** | Specify a single color, useful in an override rule | |
||||
| **From thresholds** | Informs Grafana to take the color from the matching threshold | |
||||
| **Classic palette** | Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations | |
||||
| **Green-Yellow-Red (by value)** | Continuous color scheme | |
||||
| **Blue-Yellow-Red (by value)** | Continuous color scheme | |
||||
| **Blues (by value)** | Continuous color scheme (panel background to blue) | |
||||
| **Reds (by value)** | Continuous color scheme (panel background color to blue) | |
||||
| **Greens (by value)** | Continuous color scheme (panel background color to blue) | |
||||
| **Purple (by value)** | Continuous color scheme (panel background color to blue) | . | |
||||
|
||||
{{< figure src="/static/img/docs/v73/color_scheme_dropdown.png" max-width="350px" caption="Color scheme" class="pull-right" >}} |
@ -1,27 +0,0 @@ |
||||
--- |
||||
aliases: |
||||
- /docs/grafana/latest/panels/working-with-panels/format-standard-fields/ |
||||
- /docs/sources/panels/working-with-panels/format-standard-fields/ |
||||
title: Format a standard field |
||||
weight: 40 |
||||
--- |
||||
|
||||
# Format a standard field |
||||
|
||||
The data model used in Grafana, namely the [data frame]({{< relref "../../developers/plugins/data-frames/" >}}), is a columnar-oriented table structure that unifies both time series and table query results. Each column within this structure is called a _field_. A field can represent a single time series or table column. |
||||
|
||||
Field options allow you to change how the data is displayed in your visualizations. Options and overrides that you apply do not change the data, they change how Grafana displays the data. When you change an option, it is applied to all fields, meaning all series or columns. For example, if you change the unit to percentage, then all fields with numeric values are displayed in percentages. |
||||
|
||||
For a complete list of field formatting options, refer to [Standard field definitions]({{< relref "../standard-field-definitions/" >}}). |
||||
|
||||
> You can apply standard options to most built-in Grafana panels. Some older panels and community panels that have not updated to the new panel and data model will be missing either all or some of these field options. |
||||
|
||||
1. Open a dashboard, click the panel title, and click **Edit**. |
||||
|
||||
1. In the panel display options pane, locate the **Standard options** section. |
||||
|
||||
1. Select the standard options you want to apply. |
||||
|
||||
For more information about standard options, refer to [Standard field definitions]({{< relref "../standard-field-definitions/" >}}). |
||||
|
||||
1. To preview your change, click outside of the field option box you are editing or press **Enter**. |
Loading…
Reference in new issue