Hi Archit
In general the process of Marking follows the same pattern:
1) Extract the Marking ID passed by Spotfire in the JSON data sent to your renderCore() method.
2) Store this Marking ID in the d3 objects rendered on-screen
3) In the Marking code, figure out which d3 object or objects the user clicked on.
4) Send the Marking IDs of those objects back to Spotfire via the MarkIndices2 method.
You can see these steps in action in the Doughnut Chart sample that comes with Spotfire. You can also see a detailed explanation for another chart implementation here: https://community.tibco.com/wiki/how-create-network-chart-visualization-...
However, it may not be immediately obvious what actions you want to accomplish with Marking. In your case, do you want to highlight all the records that contains the word(s) marked?
If you want to do something that falls outside the bounds of regular marking, then you might consider executing an IronPython script when a user makes a selection.
1 Comment
Hi archit,
can you please share the script used to create word cloud in spotfire