Search code examples
ironpythontreemapspotfire

TreeMap properties(Hierarchy, Size by) using ironpython script in spotfire


How can I change TreeMap properties(Hierarchy, Size by) using ironpython script in spotfire.


Solution

  • I found the solution:

    from Spotfire.Dxp.Application.Visuals import Treemap
    treeChart = vis.As[Treemap]()
    vis.Title="tree map title"
    treeChart.Data.DataTableReference = "Your Expression"
    treeChart.ColorAxis.Expression = "Your Expression"