Product: TIBCO Spotfire®
How to display a binary object as a static graph in Spotfire.
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.
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:
- Create a new Text Area with 'Insert' > 'Text Area'.
- Right click on your new Text Area and select 'Edit Text Area'.
- Click the 'Insert Property Control' icon and select 'Label'.
- 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.
- 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.
- Right click on the table visitation and choose 'Properties'.
- Click 'Columns'.
- Choose the column that contains your binary image data on the 'Selected columns:' list. Add your data column to the list if not present.
- In the 'Renderer:' dropdown, choose 'Image'.
- Click 'Close'.