This article provides a sample to set the column renderer ("Link", "Text","Image from URL") of a Table Plot visualization
Introduction
This article provides a sample to set the column renderer ("Link", "Text","Image from URL") of a Table Plot visualization
Code Sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Visuals import * from Spotfire.Dxp.Application.Visuals.ValueRenderers import * viz = viz.As[TablePlot]() myTable = viz.Data.DataTableReference myColumn=myTable.Columns.Item["Company"] defaultR = viz.TableColumns.SetValueRenderer(myColumn,ValueRendererTypeIdentifiers.DefaultRenderer) linkR = viz.TableColumns.SetValueRenderer(myColumn,ValueRendererTypeIdentifiers.LinkRenderer) linkR.LinkTemplate="https://www.tibco.com"" imageR=viz.TableColumns.SetValueRenderer(myColumn,ValueRendererTypeIdentifiers.ImageFromUrlRenderer) imageR.UrlTemplate="https://i0.wp.com/www.gitsacademy.com/wp-content/uploads/2017/05/spotfire.png""
References
- API Reference:ValueRendererTypeIdentifiers
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.