From 20be95006f07473a1b4cd6515135fa26daf3baa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Campinas?= Date: Mon, 17 Oct 2016 22:18:31 +0100 Subject: [PATCH] Top Hit should support all field types on the metric vis --- src/ui/public/agg_types/metrics/top.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/public/agg_types/metrics/top.js b/src/ui/public/agg_types/metrics/top.js index a98767ac5d531..f0ba7a6237859 100644 --- a/src/ui/public/agg_types/metrics/top.js +++ b/src/ui/public/agg_types/metrics/top.js @@ -16,7 +16,7 @@ export default function AggTypeMetricTopProvider(Private) { { name: 'field', filterFieldTypes: function (vis, value) { - if (vis.type.name === 'table') { + if (vis.type.name === 'table' || vis.type.name === 'metric') { return true; } return value === 'number';