Merge pull request #14857 from grafana/14851-velocity-units

units: adds back velocity units.
This commit is contained in:
Torkel Ödegaard
2019-01-14 08:30:02 +01:00
committed by GitHub

View File

@@ -299,6 +299,15 @@ export const getCategories = (): ValueFormatCategory[] => [
{ name: 'writes/min (wpm)', id: 'wpm', fn: simpleCountUnit('wpm') },
],
},
{
name: 'velocity',
formats: [
{ name: 'metres/second (m/s)', id: 'velocityms', fn: toFixedUnit('m/s') },
{ name: 'kilometers/hour (km/h)', id: 'velocitykmh', fn: toFixedUnit('km/h') },
{ name: 'miles/hour (mph)', id: 'velocitymph', fn: toFixedUnit('mph') },
{ name: 'knot (kn)', id: 'velocityknot', fn: toFixedUnit('kn') },
]
},
{
name: 'volume',
formats: [