Jump to content

Batch ID Treemap View


Rohan

Recommended Posts

Hi, 

I wanted to display the Batch ID of each batch in each given reactor in the treemap view, but was having trouble as the treemap doesn't seem to accept strings and the Batch ID data is in the form of "000000000-000-000".

I was wondering if there was any way to solve this problem. I thought of two possible solutions, but was unsure how to implement them.

1. Convert the Batch ID data from string form ("000000000-000-000") to integer form ("000000000000000") and then run it through treemap as treemap accepts integers.

2. Code it in such a way that the treemap accepts the string (unsure about this one).

Please let me know if you can help. Either solution would be fine.

Screenshot (30).png

Link to comment
Share on other sites

  • Seeq Team

Hi Rohan,

For now you will have to use your first approach. You can use the formula below to convert your string signal to a numeric signal to display. 

$dashedstring.transform(($p, $c) -> sample($c.key(),$c.value().replace('-', '')))

I was inspired by this seeq.org post and made some minor adjustments in the replace() for your use case with dashes interrupting what is otherwise a number.

In a future release (R55), strings will also display Value at Start, Value at End, or Count in Treemap (strings displayed with Example data shown below). This release will not be available for several months, so in the mean time you will need to use the approach above. Thanks for reaching out!

image.png

image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...