test

Warning when upgrading to Spotfire 10

TIBCO has deprecated the JQueryUI Javascript library in the latest Spotfire 10.0 release

TIBCO Community pages show us how to use JQuery properly

Toogles zoom sliders visibility on LineCharts or BarCharts from current page

# 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

No comments: