The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

How can i modify XJitter and YJitter(Appearance) for the MarkerLayerVisualization by ironpython script? Thanks


giuseppe valenti

Recommended Posts

Hello,

Here's an example script where I tested doing that, setting the jittering for the marker layer named SalesAndMarketing in my Map chart.

propJitter in the example is a document property I created (tied to a slider in a text area) to set the amount of jittering. As stated in https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/html/P_Spotfire_Dxp_Application_Visuals_ScatterPlot_YJitter.htm, the valid range is [0, 0.5]

from Spotfire.Dxp.Application.Visuals import *  from Spotfire.Dxp.Application.Visuals.Maps import *    #myMap = myMap.As[VisualContent]() #myMap is a script parameter you must assign to your map visualization mapChart = visual.As[MapChart]()   for layer in mapChart.Layers:   if layer.Title=="SalesAndMarketing":  mLayer=layer.As[MarkerLayerVisualization]()  mLayer.XJitter = Document.Properties["propJitter"]  mLayer.YJitter = Document.Properties["propJitter"]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...