Jump to content

Recommended Posts

Hello,

this topic came up during a customer training. The presentation of the individual assets in the Treemap view looks strange at first glance. In the screenshot, the assets "Area J" and "Area K" are displayed as long rectangles, although all assets have the same number of sub-elements:

image.thumb.png.7b7617c0673a94574e8c6cc071fefd20.png

When the size of the display pane is changed it looks better:

image.thumb.png.b9e06b20c596dcf4610098a18b9ba03d.png

According to your KB entry the size of the rectangles is determined by its number of assets and may be changed by the API. Is there an example for this?

Regards,

Thorsten

Link to comment
Share on other sites

  • Seeq Team

Hi Thorsten-

In the first screenshot, the area of each box is actually the same, even though some boxes have different dimensions.  As you observed, the size of your display impacts how the boxes are drawn.

To adjust the box sizes via the API, please use the following steps:

1. On your Seeq installation, open the workbook that contains the Treemap and navigate to the API:

image.png

2. To get the ID of the asset that you would like to resize:

       a. Navigate to GET Assets

image.png

       b. Adjust the "limit" to 200 and click "Try it out!"

image.png

       c. In the Response Body, locate the asset to resize and copy the "id":

image.png

3. To resize the asset:

       a. Navigate to POST Item Properties

image.png

       b. Paste the asset ID into the "id" field.  Use the following syntax in the "Body" field.  

[
  {
    "unitOfMeasure": "",
    "name": "size",
    "value": 10
  }
]

        The following screenshot shows a size 10, but this number may be adjusted.

image.png

       c. Click "Try it out!"

4. Navigate back to the Treemap and refresh the browser.  The Treemap now reflects the adjusted size:

image.png

 

Please let me know if you have any additional questions.

 

Thanks,

Lindsey

 

Edited by Lindsey.Wilcox
  • Like 2
Link to comment
Share on other sites

  • 1 year later...

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...