GMR Insight
GMR Insight

Visualizations

GMR Insight
December 28, 2017

Locate all bar charts

December 28, 2017/ Tony Alvarez

Description: Locate all bar charts on all pages.

from Spotfire.Dxp.Application.Visuals import VisualTypeIdentifiers

for myPage in Document.Pages:
  for myVis in myPage.Visuals:
    if (myVis.TypeId == VisualTypeIdentifiers.BarChart):
      print "Bar Chart Name: " + myVis.Title
      print "Bar Chart ID: " + myVis.Id.ToString()
December 28, 2017/ Tony Alvarez/ Comment
Spotfire, IronPython, Bar Chart
General

Tony Alvarez

  • Remove a bar chart
  • Switch visualization to bar chart

GMR Insight