Jump to content
  • IronPython script to Get Visual Type


    Sometimes it is necessary to check the visualization type before performing other actions with that visualization. This script allows the user to find the visualization type.

    Introduction

    Sometimes it is necessary to check the visualization type before performing other actions with that visualization. This script allows the user to find the visualization type.

    Get Visual Type

    The below script contains an 'if' statement that checks the type of visualization. Users can perform other actions based on the True/False output of this code. Please see the API documentation for the names of the other types of visualization.

     # Copyright © 2017. TIBCO Software Inc.  Licensed under TIBCO BSD-style license.
     
     #Get visual type:
     
     if type(vis).__name__ == "ScatterPlot"
         ...
     

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...