Starting from Spotfire 10.9, visualizations like bar, line, combination charts and scatter plots now support shared dual scales. This article provides a sample IronPython script on how to set custom Axis Range for these scales
Introduction
Starting from Spotfire 10.9, visualizations like bar, line, combination charts and scatter plots now support shared dual scales. This article provides a sample IronPython script on how to set custom Axis Range for these scales
Code Sample
# Copyright © 2019. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Visuals import * bChart= vis.As[BarChart]() #Set axis scale mode bChart.YAxis.IndividualScaling = True bChart.YAxis.IndividualScalingMode = IndividualScalingMode.Dual # To set the Left axis range bChart.YAxis.IndexedRange[ScaleDock.Near] = AxisRange (0, 100) # To set the Right axis range bChart.YAxis.IndexedRange[ScaleDock.Far] = AxisRange (0, 100)
References
License: TIBCO BSD-Style License
Back to IronPython Scripting in Spotfire Examples: https://community.spotfire.com/s/article/IronPython-Scripting-in-Spotfire
Recommended Comments
There are no comments to display.