2015-04-01 23:39:33 +02:00
|
|
|
[[metric-chart]]
|
2016-10-25 03:41:32 +02:00
|
|
|
== Metric
|
2015-03-09 06:30:42 +01:00
|
|
|
|
|
|
|
A metric visualization displays a single number for each aggregation you select:
|
|
|
|
|
|
|
|
include::y-axis-aggs.asciidoc[]
|
2016-03-17 01:22:19 +01:00
|
|
|
|
2015-03-09 06:30:42 +01:00
|
|
|
You can click the *Advanced* link to display more customization options:
|
|
|
|
|
2016-06-30 23:32:21 +02:00
|
|
|
*JSON Input*:: A text field where you can add specific JSON-formatted properties to merge with the aggregation
|
2015-03-09 06:30:42 +01:00
|
|
|
definition, as in the following example:
|
|
|
|
|
|
|
|
[source,shell]
|
|
|
|
{ "script" : "doc['grade'].value * 1.2" }
|
|
|
|
|
2016-06-30 23:32:21 +02:00
|
|
|
NOTE: In Elasticsearch releases 1.4.3 and later, this functionality requires you to enable
|
2017-06-27 19:13:42 +02:00
|
|
|
{ref}/modules-scripting.html[dynamic Groovy scripting].
|
2015-03-09 06:30:42 +01:00
|
|
|
|
|
|
|
The availability of these options varies depending on the aggregation you choose.
|
|
|
|
|
2017-06-27 19:13:42 +02:00
|
|
|
Click the *Options* tab to display the font size slider.
|