Remove a bar chart
/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)