giuseppe valenti Posted January 24, 2023 Share Posted January 24, 2023 Link to comment Share on other sites More sharing options...
Fredrik Rosell 3 Posted January 25, 2023 Share Posted January 25, 2023 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 More sharing options...
giuseppe valenti Posted January 25, 2023 Author Share Posted January 25, 2023 Thank you very much,works very well!👌 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now