From 999894cccbecee3cad37ccd2ad1b7ff0068d1ece Mon Sep 17 00:00:00 2001 From: Date: Fri, 26 Jun 2015 17:22:41 +0200 Subject: [PATCH 1/4] Added Pressure unit (mbar and hPa) --- public/app/components/kbn.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/components/kbn.js b/public/app/components/kbn.js index aa5146c1538..f3262e3add4 100644 --- a/public/app/components/kbn.js +++ b/public/app/components/kbn.js @@ -399,6 +399,8 @@ function($, _, moment) { kbn.valueFormats.celsius = function(value, decimals) { return kbn.toFixed(value, decimals) + ' °C'; }; kbn.valueFormats.farenheit = function(value, decimals) { return kbn.toFixed(value, decimals) + ' °F'; }; kbn.valueFormats.humidity = function(value, decimals) { return kbn.toFixed(value, decimals) + ' %H'; }; + kbn.valueFormats.pressurebar = function(value, decimals) { return kbn.toFixed(value, decimals) + ' mbar'; }; + kbn.valueFormats.pressurehpa = function(value, decimals) { return kbn.toFixed(value, decimals) + ' hPa'; }; kbn.valueFormats.ppm = function(value, decimals) { return kbn.toFixed(value, decimals) + ' ppm'; }; kbn.valueFormats.velocityms = function(value, decimals) { return kbn.toFixed(value, decimals) + ' m/s'; }; kbn.valueFormats.velocitykmh = function(value, decimals) { return kbn.toFixed(value, decimals) + ' km/h'; }; @@ -590,6 +592,8 @@ function($, _, moment) { {text: 'Celcius (°C)', value: 'celsius' }, {text: 'Farenheit (°F)', value: 'farenheit'}, {text: 'Humidity (%H)', value: 'humidity' }, + {text: 'Pressure (mbar)', value: 'pressurembar' }, + {text: 'Pressure (hPa)', value: 'pressurehpa' }, ] }, { From 5f513773c1d8a1c738138e3da16748f41433a7f8 Mon Sep 17 00:00:00 2001 From: Date: Fri, 26 Jun 2015 17:28:53 +0200 Subject: [PATCH 2/4] Added Pressure units (mbar and hPa) --- public/app/components/kbn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/components/kbn.js b/public/app/components/kbn.js index f3262e3add4..ab5a83e6c23 100644 --- a/public/app/components/kbn.js +++ b/public/app/components/kbn.js @@ -592,8 +592,8 @@ function($, _, moment) { {text: 'Celcius (°C)', value: 'celsius' }, {text: 'Farenheit (°F)', value: 'farenheit'}, {text: 'Humidity (%H)', value: 'humidity' }, - {text: 'Pressure (mbar)', value: 'pressurembar' }, - {text: 'Pressure (hPa)', value: 'pressurehpa' }, + {text: 'Pressure (mbar)', value: 'pressurembar' }, + {text: 'Pressure (hPa)', value: 'pressurehpa' }, ] }, { From aba824a3177d355a2aa405842874e740b6164a2c Mon Sep 17 00:00:00 2001 From: Date: Fri, 26 Jun 2015 17:34:21 +0200 Subject: [PATCH 3/4] Added Pressure units (mbar and hPa) --- public/app/components/kbn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/components/kbn.js b/public/app/components/kbn.js index ab5a83e6c23..d4a1a3c5178 100644 --- a/public/app/components/kbn.js +++ b/public/app/components/kbn.js @@ -399,7 +399,7 @@ function($, _, moment) { kbn.valueFormats.celsius = function(value, decimals) { return kbn.toFixed(value, decimals) + ' °C'; }; kbn.valueFormats.farenheit = function(value, decimals) { return kbn.toFixed(value, decimals) + ' °F'; }; kbn.valueFormats.humidity = function(value, decimals) { return kbn.toFixed(value, decimals) + ' %H'; }; - kbn.valueFormats.pressurebar = function(value, decimals) { return kbn.toFixed(value, decimals) + ' mbar'; }; + kbn.valueFormats.pressurembar = function(value, decimals) { return kbn.toFixed(value, decimals) + ' mbar'; }; kbn.valueFormats.pressurehpa = function(value, decimals) { return kbn.toFixed(value, decimals) + ' hPa'; }; kbn.valueFormats.ppm = function(value, decimals) { return kbn.toFixed(value, decimals) + ' ppm'; }; kbn.valueFormats.velocityms = function(value, decimals) { return kbn.toFixed(value, decimals) + ' m/s'; }; From 9d4cce74b2bff70272ea01bbc2a7100d34453ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bouchex=20Bellomi=C3=A9?= Date: Sat, 27 Jun 2015 16:59:34 +0200 Subject: [PATCH 4/4] Added dB unit --- public/app/components/kbn.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/components/kbn.js b/public/app/components/kbn.js index d4a1a3c5178..d817ada2ebe 100644 --- a/public/app/components/kbn.js +++ b/public/app/components/kbn.js @@ -543,6 +543,7 @@ function($, _, moment) { {text: 'short', value: 'short'}, {text: 'percent', value: 'percent'}, {text: 'ppm', value: 'ppm'}, + {text: 'dB', value: 'dB'}, ] }, {