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
commit 9d4354b7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: [