Wordcloud let visualize textual information in a more visual and compelling manner than ever before. All the functionalities you expect are there: custom colors and font sizes, high performance, accurate and highly responsive markings, ... On top of that you can choose different word angles and layouts and specify font sizes yourself or let the Mod normalize these for you.
How to open the mod
- Open Spotfire® Analyst, and create and analysis by loading some data.
- Unzip the downloaded file, and locate the .mod file in the unzipped folder.
- Drag the file into the analysis.
- The visualization mod is added to the analysis.
- To learn more about the capabilities and limitations of this visualization mod, keep reading or see the User Guide which is also located in the downloaded folder.
For general information on how to use and share visualization mods, you can read the Spotfire documentation.
To make the Wordcloud work properly you only need one column: Words. Keep those short for the best results. Having not too many different words also helps in keeping the visualization easily scannable.
To spice things up a bit more add a numerical column to indicate the relative font size of each word (absolute if you want, turn off the 'normalize font size' setting behind the upper right cogwheel), add a splash of color using the color axis or show words at different angles by changing the rotation setting behind the cogwheel.
These instructions assume that you have Node.js (which includes npm) installed.
- Open a terminal at the location of this example.
- Run
npm install
. This will install necessary tools. Run this command only the first time you are building the mod and skip this step for any subsequent builds. - Run
npm start
. This will bundle the JavaScript and place it in thedist
folder. This task will watch for changes in the code and will continue running until it is stopped. Whenever you save a file, the changes will be reflected in the visualization mod. - Run
npm run server
in a separate terminal. This will start a development server. - Start editing, for example
src/index.js
. - In Spotfire, follow the steps of creating a new mod and connecting to the development server.
- Open a terminal at the location of this example.
- Run
npm install
. This will install necessary tools. Run this command only the first time you are building the mod and skip this step for any subsequent builds. - Run
npm run build
. This will bundle the JavaScript and place it in thedist
folder. It also copies the contents ofstatic
intodist
. This task will not watch for changes in the code. - In Spotfire, follow the steps of creating a new mod and then browse for, and point to, the manifest in the
dist
folder.