浏览代码

docs: update table plugin documentation with value/range to text mapping

Marcus Efraimsson 7 年之前
父节点
当前提交
828dd34507
共有 2 个文件被更改,包括 13 次插入2 次删除
  1. 2 2
      docs/sources/features/panels/singlestat.md
  2. 11 0
      docs/sources/features/panels/table_panel.md

+ 2 - 2
docs/sources/features/panels/singlestat.md

@@ -77,11 +77,11 @@ Gauges gives a clear picture of how high a value is in it's context. It's a grea
 
 
 <div class="clearfix"></div>
 <div class="clearfix"></div>
 
 
-### Value to text mapping
+### Value/Range to text mapping
 
 
 {{< docs-imagebox img="/img/docs/v45/singlestat-value-mapping.png" class="docs-image--right docs-image--no-shadow">}}
 {{< docs-imagebox img="/img/docs/v45/singlestat-value-mapping.png" class="docs-image--right docs-image--no-shadow">}}
 
 
-Value 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.
+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.
 
 
 <div class="clearfix"></div>
 <div class="clearfix"></div>
 
 

+ 11 - 0
docs/sources/features/panels/table_panel.md

@@ -97,3 +97,14 @@ The column styles allow you control how dates and numbers are formatted.
 4. **Thresholds and Coloring**: Specify color mode and thresholds limits.
 4. **Thresholds and Coloring**: Specify color mode and thresholds limits.
 5. **Type**: The three supported types of types are **Number**, **String** and **Date**. **Unit** and **Decimals**: Specify unit and decimal precision for numbers. **Format**: Specify date format for dates.
 5. **Type**: The three supported types of types are **Number**, **String** and **Date**. **Unit** and **Decimals**: Specify unit and decimal precision for numbers. **Format**: Specify date format for dates.
 
 
+
+### String
+#### Value/Range to text mapping
+
+> Only available in Grafana v5.1+.
+
+{{< docs-imagebox img="/img/docs/v51/table-value-mapping.png" class="docs-image--right docs-image--no-shadow">}}
+
+Value/range to text mapping allows you to translate numeric values into explicit text. The text will respect all styling, thresholds and customization defined for the value. This can be useful to translate the numeric values into a context-specific human-readable word or message.
+
+<div class="clearfix"></div>