From ececc155f86163843f602c39002dd48769da2ce0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 25 May 2022 09:34:24 -0700 Subject: Fix chart units (fix #943) --- modern/src/common/attributes/usePositionAttributes.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modern/src/common/attributes') diff --git a/modern/src/common/attributes/usePositionAttributes.js b/modern/src/common/attributes/usePositionAttributes.js index d6ee5805..4b779090 100644 --- a/modern/src/common/attributes/usePositionAttributes.js +++ b/modern/src/common/attributes/usePositionAttributes.js @@ -16,6 +16,7 @@ export default (t) => useMemo(() => ({ speed: { name: t('positionSpeed'), type: 'number', + dataType: 'speed', }, course: { name: t('positionCourse'), @@ -28,6 +29,7 @@ export default (t) => useMemo(() => ({ accuracy: { name: t('positionAccuracy'), type: 'number', + dataType: 'distance', }, valid: { name: t('positionValid'), -- cgit v1.2.3