<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Format data using value mapping on Grafana Labs</title><link>https://grafana.com/docs/grafana/v8.4/panels/format-data/</link><description>Recent content in Format data using value mapping on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v8.4/panels/format-data/index.xml" rel="self" type="application/rss+xml"/><item><title>About value mapping</title><link>https://grafana.com/docs/grafana/v8.4/panels/format-data/about-value-mapping/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/format-data/about-value-mapping/</guid><content><![CDATA[&lt;h1 id=&#34;about-value-mapping&#34;&gt;About value mapping&lt;/h1&gt;
&lt;p&gt;Value mapping allows you to replace values or ranges in your visualizations with words or emojis.&lt;/p&gt;
&lt;p&gt;Values mapped via value mappings will skip the unit formatting. This means that a text value mapped to a numerical value will not be formatted using the configured unit.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/value-mappings-example-8-0.png&#34;
  alt=&#34;Value mappings example&#34; width=&#34;1200&#34;
     height=&#34;513&#34;/&gt;&lt;/p&gt;
&lt;p&gt;If value mappings are present in a panel, then Grafana displays a summary in the side pane of the panel editor.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The new value mappings are not compatible with some visualizations, such as Graph (old), Text, and Heatmap.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h2 id=&#34;types-of-value-mappings&#34;&gt;Types of value mappings&lt;/h2&gt;
&lt;p&gt;Grafana supports the following value mappings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Value&lt;/strong&gt; maps text values to a color or different display text. For example, if a value is &lt;code&gt;10&lt;/code&gt;, I want Grafana to display &lt;strong&gt;Perfection!&lt;/strong&gt; rather than the number.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Range&lt;/strong&gt; maps numerical ranges to a display text and color. For example, if a value is within a certain range, I want Grafana to display &lt;strong&gt;Low&lt;/strong&gt; or &lt;strong&gt;High&lt;/strong&gt; rather than the number.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Regex&lt;/strong&gt; maps regular expressions to replacement text and a color. For example, if a value is &amp;lsquo;&lt;a href=&#34;https://www.example.com&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;www.example.com&lt;/a&gt;&amp;rsquo;, I want Grafana to display just &lt;strong&gt;www&lt;/strong&gt;, truncating the domain.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Special&lt;/strong&gt; maps special values like &lt;code&gt;Null&lt;/code&gt;, &lt;code&gt;NaN&lt;/code&gt; (not a number), and boolean values like &lt;code&gt;true&lt;/code&gt; and &lt;code&gt;false&lt;/code&gt; to a display text and color. For example, if Grafana encounters a &lt;code&gt;null&lt;/code&gt;, I want Grafana to display &lt;strong&gt;N/A&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also use the dots on the left as a &amp;ldquo;handle&amp;rdquo; to drag and reorder value mappings in the list.&lt;/p&gt;
&lt;h2 id=&#34;time-series-example&#34;&gt;Time series example&lt;/h2&gt;
&lt;p&gt;Here&amp;rsquo;s an example showing a Time series visualization with value mappings. Value mapping colors are not applied to this visualization, but the display text is shown on the axis.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/value-mappings-summary-example-8-0.png&#34;
  alt=&#34;Value mappings time series example&#34; width=&#34;1000&#34;
     height=&#34;339&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;stat-example&#34;&gt;Stat example&lt;/h2&gt;
&lt;p&gt;Here&amp;rsquo;s an example showing a Stat visualization with value mappings. You might want to hide the sparkline so it doesn&amp;rsquo;t interfere with the values. Value mapping text colors are applied.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/value-mappings-stat-example-8-0.png&#34;
  alt=&#34;Value mappings stat example&#34; width=&#34;1158&#34;
     height=&#34;445&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;bar-gauge-example&#34;&gt;Bar gauge example&lt;/h2&gt;
&lt;p&gt;Here&amp;rsquo;s an example showing a Bar gauge visualization with value mappings. The value mapping colors are applied to the text but not the gauges.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/value-mappings-bar-gauge-example-8-0.png&#34;
  alt=&#34;Value mappings bar gauge example&#34; width=&#34;1000&#34;
     height=&#34;275&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;table-example&#34;&gt;Table example&lt;/h2&gt;
&lt;p&gt;Here&amp;rsquo;s an example showing a Table visualization with value mappings. If you want value mapping colors displayed on the table, then set the cell display mode to &lt;strong&gt;Color text&lt;/strong&gt; or &lt;strong&gt;Color background&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/value-mappings-table-example-8-0.png&#34;
  alt=&#34;Value mappings table example&#34; width=&#34;1163&#34;
     height=&#34;384&#34;/&gt;&lt;/p&gt;
]]></content><description>&lt;h1 id="about-value-mapping">About value mapping&lt;/h1>
&lt;p>Value mapping allows you to replace values or ranges in your visualizations with words or emojis.&lt;/p>
&lt;p>Values mapped via value mappings will skip the unit formatting. This means that a text value mapped to a numerical value will not be formatted using the configured unit.&lt;/p></description></item><item><title>Map a value</title><link>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-value/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-value/</guid><content><![CDATA[&lt;h1 id=&#34;map-a-value&#34;&gt;Map a value&lt;/h1&gt;
&lt;p&gt;Map a value when you want to format a single value.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To map a value&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open a panel for which you want to map a value.&lt;/li&gt;
&lt;li&gt;In panel display options, locate the &lt;strong&gt;Value mappings&lt;/strong&gt; section and click &lt;strong&gt;Add value mappings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add a new mapping&lt;/strong&gt; and then select &lt;strong&gt;Value&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter the value for Grafana to match.&lt;/li&gt;
&lt;li&gt;(Optional) Enter display text.&lt;/li&gt;
&lt;li&gt;(Optional) Set the color.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Update&lt;/strong&gt; to save the value mapping.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/map-value-8-0.png&#34;
  alt=&#34;Map a value&#34; width=&#34;1000&#34;
     height=&#34;138&#34;/&gt;&lt;/p&gt;
]]></content><description>&lt;h1 id="map-a-value">Map a value&lt;/h1>
&lt;p>Map a value when you want to format a single value.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../../working-with-panels/add-panel/">Add a panel to a dashboard&lt;/a>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>To map a value&lt;/strong>:&lt;/p></description></item><item><title>Map a range</title><link>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-range/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-range/</guid><content><![CDATA[&lt;h1 id=&#34;map-a-range&#34;&gt;Map a range&lt;/h1&gt;
&lt;p&gt;Map a range of values when you want to format multiple, continuous values.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To map a range&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Edit the panel for which you want to map a range of values.&lt;/li&gt;
&lt;li&gt;In panel display options, in the &lt;strong&gt;Value mappings&lt;/strong&gt; section, click &lt;strong&gt;Add value mappings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add a new mapping&lt;/strong&gt; and then select &lt;strong&gt;Range&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter the beginning and ending values in the range for Grafana to match.&lt;/li&gt;
&lt;li&gt;(Optional) Enter display text.&lt;/li&gt;
&lt;li&gt;(Optional) Set the color.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Update&lt;/strong&gt; to save the value mapping.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/map-range-8-0.png&#34;
  alt=&#34;Map a range&#34; width=&#34;999&#34;
     height=&#34;128&#34;/&gt;&lt;/p&gt;
]]></content><description>&lt;h1 id="map-a-range">Map a range&lt;/h1>
&lt;p>Map a range of values when you want to format multiple, continuous values.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../../working-with-panels/add-panel/">Add a panel to a dashboard&lt;/a>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>To map a range&lt;/strong>:&lt;/p></description></item><item><title>Map a regular expression</title><link>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-regular-expression/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-regular-expression/</guid><content><![CDATA[&lt;h1 id=&#34;map-a-regular-expression&#34;&gt;Map a regular expression&lt;/h1&gt;
&lt;p&gt;Map a regular expression when you want to format the text and color of a regular expression value.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To map a regular expression&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Edit the panel for which you want to map a regular expression.&lt;/li&gt;
&lt;li&gt;In the panel display options, in the &lt;strong&gt;Value mappings&lt;/strong&gt; section, click &lt;strong&gt;Add value mappings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add a new mapping&lt;/strong&gt; and then select &lt;strong&gt;Regex&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter the regular expression pattern for Grafana to match.&lt;/li&gt;
&lt;li&gt;(Optional) Enter display text.&lt;/li&gt;
&lt;li&gt;(Optional) Set the color.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Update&lt;/strong&gt; to save the value mapping.&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="map-a-regular-expression">Map a regular expression&lt;/h1>
&lt;p>Map a regular expression when you want to format the text and color of a regular expression value.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../../working-with-panels/add-panel/">Add a panel to a dashboard&lt;/a>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>To map a regular expression&lt;/strong>:&lt;/p></description></item><item><title>Map a special value</title><link>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-special-value/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/format-data/map-a-special-value/</guid><content><![CDATA[&lt;h1 id=&#34;map-a-special-value&#34;&gt;Map a special value&lt;/h1&gt;
&lt;p&gt;Map a special value when you want to format uncommon, boolean, or empty values.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To map a special value&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Edit the panel for which you want to map a special value.&lt;/li&gt;
&lt;li&gt;In panel display options, locate the &lt;strong&gt;Value mappings&lt;/strong&gt; section and click &lt;strong&gt;Add value mappings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add a new mapping&lt;/strong&gt; and then select &lt;strong&gt;Special&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the special value for Grafana to match. Options include:
&lt;ul&gt;
&lt;li&gt;Null&lt;/li&gt;
&lt;li&gt;NaN (Not a Number)&lt;/li&gt;
&lt;li&gt;Null &#43; NaN&lt;/li&gt;
&lt;li&gt;True&lt;/li&gt;
&lt;li&gt;False&lt;/li&gt;
&lt;li&gt;Empty&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;(Optional) Enter display text.&lt;/li&gt;
&lt;li&gt;(Optional) Set the color.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Update&lt;/strong&gt; to save the value mapping.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/value-mappings/map-special-value-8-0.png&#34;
  alt=&#34;Map a value&#34; width=&#34;999&#34;
     height=&#34;139&#34;/&gt;&lt;/p&gt;
]]></content><description>&lt;h1 id="map-a-special-value">Map a special value&lt;/h1>
&lt;p>Map a special value when you want to format uncommon, boolean, or empty values.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../../working-with-panels/add-panel/">Add a panel to a dashboard&lt;/a>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>To map a special value&lt;/strong>:&lt;/p></description></item><item><title>Edit a value mapping</title><link>https://grafana.com/docs/grafana/v8.4/panels/format-data/edit-value-mapping/</link><pubDate>Sat, 04 Apr 2026 12:26:57 +0000</pubDate><guid>https://grafana.com/docs/grafana/v8.4/panels/format-data/edit-value-mapping/</guid><content><![CDATA[&lt;h1 id=&#34;edit-a-value-mapping&#34;&gt;Edit a value mapping&lt;/h1&gt;
&lt;p&gt;You can change a value mapping at any time.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../working-with-panels/add-panel/&#34;&gt;Add a panel to a dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Ensure you have an existing value mapping to edit.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;To edit a value mapping&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Edit the panel that contains the value mapping you want to edit.&lt;/li&gt;
&lt;li&gt;In the panel display options, in the &lt;strong&gt;Value mappings&lt;/strong&gt; section, click &lt;strong&gt;Edit value mappings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Make the changes and click &lt;strong&gt;Update&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
]]></content><description>&lt;h1 id="edit-a-value-mapping">Edit a value mapping&lt;/h1>
&lt;p>You can change a value mapping at any time.&lt;/p>
&lt;h2 id="before-you-begin">Before you begin&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../../working-with-panels/add-panel/">Add a panel to a dashboard&lt;/a>.&lt;/li>
&lt;li>Ensure you have an existing value mapping to edit.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>To edit a value mapping&lt;/strong>:&lt;/p></description></item></channel></rss>