# Toogles zoom sliders visibility on LineCharts or BarCharts from current page.
from Spotfire.Dxp.Application.Visuals import VisualTypeIdentifiers, VisualContent, AxisRange, BarChart, LineChart
#1 Check for LineChart or BarChart visualizations on current page
for vis in Application.Document.ActivePageReference.Visuals:
if vis.TypeId == VisualTypeIdentifiers.LineChart or vis.TypeId == VisualTypeIdentifiers.BarChart:
#1.1 check zoom sliders on/off
state=vis.As[VisualContent]().XAxis.ManualZoom
#1.1.2 toogle zoom sliders on/off
vis.As[VisualContent]().XAxis.ManualZoom=not state
vis.As[VisualContent]().YAxis.ManualZoom=not state
from Spotfire.Dxp.Application.Visuals import VisualTypeIdentifiers, VisualContent, AxisRange, BarChart, LineChart
#1 Check for LineChart or BarChart visualizations on current page
for vis in Application.Document.ActivePageReference.Visuals:
if vis.TypeId == VisualTypeIdentifiers.LineChart or vis.TypeId == VisualTypeIdentifiers.BarChart:
#1.1 check zoom sliders on/off
state=vis.As[VisualContent]().XAxis.ManualZoom
#1.1.2 toogle zoom sliders on/off
vis.As[VisualContent]().XAxis.ManualZoom=not state
vis.As[VisualContent]().YAxis.ManualZoom=not state
ConversionConversion EmoticonEmoticon