diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-25 09:34:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-25 09:34:24 -0700 |
commit | ececc155f86163843f602c39002dd48769da2ce0 (patch) | |
tree | 785b1f4fea94a23c3c39b410104c6e0b976865b4 /modern/src/common/attributes | |
parent | 09954c06d8970f27ad14f8b30ed14cf357a1fa5e (diff) | |
download | trackermap-web-ececc155f86163843f602c39002dd48769da2ce0.tar.gz trackermap-web-ececc155f86163843f602c39002dd48769da2ce0.tar.bz2 trackermap-web-ececc155f86163843f602c39002dd48769da2ce0.zip |
Fix chart units (fix #943)
Diffstat (limited to 'modern/src/common/attributes')
-rw-r--r-- | modern/src/common/attributes/usePositionAttributes.js | 2 |
1 files changed, 2 insertions, 0 deletions
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'), |