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

units: adds back velocity units.
pull/14816/head
Torkel Ödegaard 6 years ago committed by GitHub
commit 9d4354b7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      packages/grafana-ui/src/utils/valueFormats/categories.ts

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

Loading…
Cancel
Save