How to display a binary object as a static graph in Spotfire.

How to display a binary object as a static graph in Spotfire.

book

Article ID: KB0079910

calendar_today

Updated On:

Products Versions
Spotfire Analyst All Versions

Description

Images (such as .jpg, .png, gif, etc.) can be stored in their binary data format and then displayed in Spotfire. This can be useful for capturing images from external applications and displaying them in a Spotfire analysis.

Issue/Introduction

How to display a binary object as a static graph in Spotfire.

Resolution

One example of working with binary image data is where you can use TIBCO Spotfire Statistics Services and the R engine to generate graphs in your data functions and then display those in your Spotfire analysis.  This can be useful for creating graphs in R that are not present in Spotfire. For an example of this, see KB article # 000020130 (https://support.tibco.com/s/article/How-to-create-a-graph-using-TERR-by-calling-open-source-R-functions-via-the-RinR-package) on how to return graphs as a binary object using TERR through the RinR package with open-source R. The data function will use a binary property as the output parameter where your binary image data will be stored.  You can display your image in Spotfire using one of these two techniques:

 

To display your image in a Text Area:
If your binary image data is stored in a property (document, data table, or column property), such as resulting from from a data function like described above:

  1. Create a new Text Area with 'Insert' > 'Text Area'.
  2. Right click on your new Text Area and select 'Edit Text Area'.
  3. Click the 'Insert Property Control' icon and select 'Label'.
  4. In the 'Property Control' dialog, choose the property that contains the binary image value in either the Document Property, Data Table Property or the Column Property tab depending on the property type defined as the output parameter of your data function.
  5. Click OK.
 

To display your image in a Table visualization cell:
If your binary image data is already present in a data column, the image can be displayed in the table cell.

  1. Right click on the table visitation and choose 'Properties'.
  2. Click 'Columns'.
  3. Choose the column that contains your binary image data on the 'Selected columns:' list. Add your data column to the list if not present.
  4. In the 'Renderer:' dropdown, choose 'Image'.
  5. Click 'Close'.

Additional Information

KB 000020130 How to create a graph using TERR, by calling open-source R functions via the RinR package