# How to visualize Enum or String Data in Cumulocity Cloud

**URL:** <https://community.cumulocity.com/t/how-to-visualize-enum-or-string-data-in-cumulocity-cloud/202>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [April 19, 2022, 1:16pm UTC](https://community.cumulocity.com/t/how-to-visualize-enum-or-string-data-in-cumulocity-cloud/202 "2022-04-19T13:16:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasad.patil](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@prasad.patil](https://community.cumulocity.com/u/prasad.patil)\
**Post date:** [April 19, 2022, 1:16pm UTC](https://community.cumulocity.com/t/how-to-visualize-enum-or-string-data-in-cumulocity-cloud/202/1 "2022-04-19T13:16:59Z")

</div>

#### What product/components do you use and which version/fix level?

1011.0.19

#### Are you using a free trial or a product with a customer license?

#### What are trying to achieve? Please describe in detail.

I have a device named ‘Test\_Device’ registered and connected to Cumulocity Cloud via MQTT.  
I send some values to this device using MQTT.fx for now… but going forward the values will come from a physical device.

I am able to send Numerical data to the ‘Test\_Device’ and that data is being visualized in the Measurements tab inside that Device in a graphical format.

1. Now… I need to see/visualize an Enumerated data in Cumuloicty. I am not able to understand in which section and how this data can be visualized in the ‘Test\_Device’ and by using which template this can be achieved.  
Example for Enumerated data: 0 = Normal, 1= Alarm, 2 = Fault, 3 = Out Of Range…etc…

2. Similar to Enum my device accepts string values… like “ON”, “OFF”, “Overload”, etc…  
So is there any provision for string type of data to be visualized in measurements section of the ‘Test\_Device’ or what other options are available for such data to be seen/visualized in Cumuloicty?

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

#### Have you installed latest fixes for the products

---

<div class="post-metadata">

**Author:** ![sumit.singh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sumit.singh](https://community.cumulocity.com/u/sumit.singh)\
**Post date:** [April 25, 2022, 7:42am UTC](https://community.cumulocity.com/t/how-to-visualize-enum-or-string-data-in-cumulocity-cloud/202/2 "2022-04-25T07:42:37Z")

</div>

Any update regarding this…??

---

<div class="post-metadata">

**Author:** ![Christian\_Guether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_guether1/32/14848_2.png) [@Christian\_Guether1](https://community.cumulocity.com/u/Christian_Guether1)\
**Post date:** [April 25, 2022, 1:29pm UTC](https://community.cumulocity.com/t/how-to-visualize-enum-or-string-data-in-cumulocity-cloud/202/3 "2022-04-25T13:29:58Z")

</div>

Hi,

as stated in the documentation measurements always require to have numerical values. You could extend a measurement and provide additional information by using custom fragments. But these custom fragments won’t be picked up by any of the Cumulocity built-in components. In addition, I don’t think it would be the correct approach for your requirements.

The information you want to send to Cumulocity for your device is describing a state of change for the device. For example, if the device is out of range or whether the device is on/off. For such kind of information you typically use [Events](https://cumulocity.com/api/10.11.0/#operation/postEventCollectionResource) in Cumulocity. [Link](https://cumulocity.com/guides/reference/smartrest-two/#event-templates) to predefined MQTT templates. Next to the Measurement tab in Cumulocity’s Device Management application you have an Events tab, which displays all received events. There is also a widget for the dashboard to display received events in a list.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/8/5/854676b963657f534a98ded150063b7f9f0e74ab.png)

If you want to visualize your events differently than just as a plain list, you need to implement your own plugin or widget. There is also the [Process Widget](https://github.com/Cumulocity-IoT/cumulocity-processing-widget) from Global PreSales you might want to look into.

Best regards  
Christian

---

<div class="post-metadata">

**Author:** ![prasad.patil](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@prasad.patil](https://community.cumulocity.com/u/prasad.patil)\
**Post date:** [April 26, 2022, 4:26am UTC](https://community.cumulocity.com/t/how-to-visualize-enum-or-string-data-in-cumulocity-cloud/202/4 "2022-04-26T04:26:51Z")

</div>

Hi Christian,

Thanks for the suggestion…

We will check this and get back if any help needed.

Thanks,  
Prasad

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [July 25, 2022, 4:26am UTC](https://community.cumulocity.com/t/how-to-visualize-enum-or-string-data-in-cumulocity-cloud/202/5 "2022-07-25T04:26:54Z")

</div>

Closed on July 25, 2022, 4:26am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
