[Visualize] Using format
option in JSON input is not reflecting in the data
#59703
Labels
Feature:Vis Editor
Visualization editor issues
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version: 7.6.1
Describe the bug:
The visualization builder features a
JSON input
text area where the user can add additional fields to the options of the aggregation.One option available from Elasticsearch is
format
. The option shows up in the documentation for all of the aggregation types, but the permitted values about it are currently not well documented. (here is the docs issue: elastic/elasticsearch#53304)Using
format
in the JSON input does cause the right thing to be sent to Elasticsearch, and returned from Elasticsearch. However, when it is used, Kibana displays the raw data instead of the formatted version, which is returned asvalue_as_string
from Elasticsearc.hSteps to reproduce:
Average Bucket
{ "format": "#" }
value_as_string
Expected behavior:
When Kibana is showing a value that's a result of a metric aggregation, it should defer to the
value_as_string
from the response data.Or, there may be a better way to provide aggregation metric formatting to the user without requiring typing the options into JSON input.
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: