Przeglądaj źródła

Units: Add electrical charge - ampere-hour unit

Anirudh Ramesh 6 lat temu
rodzic
commit
6968fab437

+ 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: 'Kilowatt-hour (kWh)', id: 'kwatth', fn: decimalSIPrefix('Wh', 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: 'Electron volt (eV)', id: 'ev', fn: decimalSIPrefix('eV') },
       { name: 'Ampere (A)', id: 'amp', fn: decimalSIPrefix('A') },