[TSVB] Add numeral support for duration fields #14612
Labels
Feature:FieldFormatters
Feature:TSVB
TSVB (Time Series Visual Builder)
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version: 6.0.0-rc1
Description of the problem including expected versus actual behavior:
When formatting a metric visualization as a duration (I.E from milliseconds to minutes), the number isn't formatted with
numeral.js
which makes it just a long number (Without commas).Instead of having the
decimal places
option, we can replace it with anumeral.js format
which will just runnumeral(value).format(format)
after the duration conversion here: https://github.com/elastic/kibana/blob/6.x/src/core_plugins/metrics/public/components/lib/tick_formatter.js#L37Steps to reproduce:
duration
The text was updated successfully, but these errors were encountered: