Jump to content

Add marking to a Wordcloud and other visualizations implemented through D3


Archit Soni 4

Recommended Posts

Hi,

I have created a word cloud D3 visualization to show the frequency of most recurring statements. However,I am not able to add code to wordcloud,js to enable marking.

Can you please let me know how marking can be achieved for D3 specific visuals.

Any suggestion/direction is appreciated.

Thanks,

Archit

Link to comment
Share on other sites

  • 1 year later...

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 IDsof 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.spotfire.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 IronPythonscript when a user makes a selection.

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...

I know this is an old question, but adding this answer in case it helps anyone who comes across it.

It's possible using JSViz. I've built a set of visuals (including a word cloud) using JSViz and made them available here:https://community.spotfire.com/wiki/simple-use-jsviz-visualisations-gaugedonut-network-radarspider-sankey-animation-word-cloud

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