You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add this datatype to a profile, only the integer part of the value is displayed (example: 5), no decimal places are presented (example: 5.37). Is there a way to 'format' the value or do we need to use a graphical datatype with a custom view?
I also saw that we can emit an UpdateGraphicConfig with a formatDataTypeId, but it's a bit unclear what do we need to provide in this parameter, tried with SPEED and DISTANCE, but no luck.
Try with UpdateNumericConfig with DataType.Type.INTENSITY_FACTOR as an experiment. This field uses 2 digits of precision with no value conversion (speed and distance will try to go from meters to the appropriate miles/km based on user profile).
That one works, showing the two decimal places. Thank you!
(It would be great if there was some docs/examples explaining the different behaviors when using the different types. In the future, maybe even allowing for custom format strings format="#.00", format="00.0", ...)
Hi,
I have a datatype that emits a single double value, for example:
If I add this datatype to a profile, only the integer part of the value is displayed (example:
5
), no decimal places are presented (example:5.37
). Is there a way to 'format' the value or do we need to use a graphical datatype with a custom view?I also saw that we can emit an
UpdateGraphicConfig
with aformatDataTypeId
, but it's a bit unclear what do we need to provide in this parameter, tried with SPEED and DISTANCE, but no luck.Thanks.
The text was updated successfully, but these errors were encountered: