GMR Insight
GMR Insight

Visualizations

GMR Insight
December 28, 2017

Remove a bar chart

December 28, 2017/ Tony Alvarez

Description: Remove all bar charts from the active page.

from Spotfire.Dxp.Application.Visuals import VisualTypeIdentifiers
activePage = Application.Document.ActivePageReference
  
for myVis in activePage.Visuals:
  if (myVis.TypeId == VisualTypeIdentifiers.BarChart):
    Application.Document.ActivePageReference.Visuals.Remove(myVis)
December 28, 2017/ Tony Alvarez/ Comment
Spotfire, IronPython, Bar Chart
General

Tony Alvarez

  • Add a new bar chart
  • Locate all bar charts

GMR Insight