Jump to content

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

giuseppe valenti

Recommended Posts


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 New...