From 88e1ec33829ff6f6bb88be81c36ecae69367f09c Mon Sep 17 00:00:00 2001 From: Jonathan McCall Date: Fri, 19 Jan 2018 19:08:54 -0500 Subject: [PATCH] Add lumens unit --- public/app/core/utils/kbn.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/core/utils/kbn.ts b/public/app/core/utils/kbn.ts index ec4837fe31d..e7ae645d4e4 100644 --- a/public/app/core/utils/kbn.ts +++ b/public/app/core/utils/kbn.ts @@ -493,6 +493,7 @@ kbn.valueFormats.kvolt = kbn.formatBuilders.decimalSIPrefix('V', 1); kbn.valueFormats.mvolt = kbn.formatBuilders.decimalSIPrefix('V', -1); kbn.valueFormats.dBm = kbn.formatBuilders.decimalSIPrefix('dBm'); kbn.valueFormats.ohm = kbn.formatBuilders.decimalSIPrefix('Ω'); +kbn.valueFormats.lumens = kbn.formatBuilders.decimalSIPrefix('Lm'); // Temperature kbn.valueFormats.celsius = kbn.formatBuilders.fixedUnit('°C'); @@ -958,6 +959,7 @@ kbn.getUnitFormats = function() { { text: 'Millivolt (mV)', value: 'mvolt' }, { text: 'Decibel-milliwatt (dBm)', value: 'dBm' }, { text: 'Ohm (Ω)', value: 'ohm' }, + { text: 'Lumens (Lm)', value: 'lumens' }, ], }, {