Gauge/BarGauge: Added support for value mapping of "no data"-state to text/value (#20842)
* FieldDisplay: added support for value mapping of no data state. Committer: Marcus Andersson <marcus.andersson@grafana.com> * FieldDisplay: fixed issue when switching between modes and display numeric was null. * ValueMapping: introduced a private function for checking null values. * FieldDisplay: refactoring of test setup to reduce duplication. * Docs: added info about new 'no data' value to text mapping. * Docs: improved according to feedback. Reverted prettier formatting changes. * FieldDisplay: removed unused import.
This commit is contained in:
committed by
Torkel Ödegaard
parent
e0229045f2
commit
7a710737ae
@@ -85,6 +85,8 @@ Gauges gives a clear picture of how high a value is in it's context. It's a grea
|
||||
|
||||
Value/Range to text mapping allows you to translate the value of the summary stat into explicit text. The text will respect all styling, thresholds and customization defined for the value. This can be useful to translate the number of the main Singlestat value into a context-specific human-readable word or message.
|
||||
|
||||
If you want to replace the default "No data" text being displayed when no data is available, add a `value to text mapping` from `null` to your preferred custom text value.
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
Reference in New Issue
Block a user