浏览代码

Units: Add electrical charge - ampere-hour unit

Anirudh Ramesh 6 年之前
父节点
当前提交
6968fab437
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/grafana-ui/src/utils/valueFormats/categories.ts

+ 1 - 0
packages/grafana-ui/src/utils/valueFormats/categories.ts

@@ -171,6 +171,7 @@ export const getCategories = (): ValueFormatCategory[] => [
       { name: 'Watt-hour (Wh)', id: 'watth', fn: decimalSIPrefix('Wh') },
       { name: 'Watt-hour (Wh)', id: 'watth', fn: decimalSIPrefix('Wh') },
       { name: 'Kilowatt-hour (kWh)', id: 'kwatth', fn: decimalSIPrefix('Wh', 1) },
       { name: 'Kilowatt-hour (kWh)', id: 'kwatth', fn: decimalSIPrefix('Wh', 1) },
       { name: 'Kilowatt-min (kWm)', id: 'kwattm', fn: decimalSIPrefix('W/Min', 1) },
       { name: 'Kilowatt-min (kWm)', id: 'kwattm', fn: decimalSIPrefix('W/Min', 1) },
+      { name: 'Ampere-hour (Ah)', id: 'amph', fn: decimalSIPrefix('Ah') },
       { name: 'Joule (J)', id: 'joule', fn: decimalSIPrefix('J') },
       { name: 'Joule (J)', id: 'joule', fn: decimalSIPrefix('J') },
       { name: 'Electron volt (eV)', id: 'ev', fn: decimalSIPrefix('eV') },
       { name: 'Electron volt (eV)', id: 'ev', fn: decimalSIPrefix('eV') },
       { name: 'Ampere (A)', id: 'amp', fn: decimalSIPrefix('A') },
       { name: 'Ampere (A)', id: 'amp', fn: decimalSIPrefix('A') },