Jump to content
  • How to read the selected Tile Name of a KPIChart Visualization in Spotfire® Using IronPython Scripting


    This article provides a sample script on how to read the category i.e., KPI tile title when clicked on a tile of a KPIChart visualization. This script should be exeuted in the Action Control context of the KPI visualization.

    Introduction

    This article provides a sample script on how to read the category i.e., KPI tile title when clicked on a tile of a KPIChart visualization. This script should be exeuted in the Action Control context of the KPI visualization.

    Code Sample

    # Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license.
    
    v = Context.Value
    Document.Properties["MyKPIValue"]=str(v)
    cv= Context.ComparativeValue
    Document.Properties["MyKPICompValue"]=str(cv)
    hv=Context.HierarchyPathValues[0]
    Document.Properties["Category"]=str(hv)
     

    References

    License:  TIBCO BSD-Style License

    Back to IronPython Scripting in Spotfire® Examples


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...