This custom chart is intended to be used inside the RAWGraphs app.
Tag (or word) clouds visualize how prominent each term is by scaling labels according to a numeric value and, optionally, coloring them. This implementation lets you organize terms into series (shown as a grid, vertical stack, or horizontal row), control sizing and padding, and color by an additional dimension.
- Download the latest release asset (
index.umd.js) from the side panel on this page or from the Releases tab. - In RAWGraphs load a dataset. You can try the sample tags file.
- In section
2. Choose a chart, scroll down and clickLoad your chart. - Select the
Load from filetab, then drag and drop the downloaded file. - Click
Load your chart, acknowledge the pop-up about external code, and continue. - The Tag Cloud chart will now be available in your chart list.
Build a multi-series tag cloud using the sample animals dataset.
Load the dataset at example/datasets/animals.tsv. Columns: name, size, category, color.
Choose Tag Cloud. If you do not see it, follow the steps in Installation.
Drag and drop dimensions as follows:
name→tagsize→sizecategory→Series- (optional)
color→Colorif you want to assign a color per each single value incolorcolumn
Key visual options you can tune in RAWGraphs:
- Chart: adjust
Max tag size,Min tag size, andPadding between tagsto control sizing; setSort tags byto organize labels by value or name. - Series: pick
Series disposition(Grid,Vertical, orHorizontal), toggleUse same scaleto keep font sizes consistent across series, andShow series titlesfor headers. - Color: choose a palette in
Color scaleto color tags by the mapped dimension. - Labels: switch between label styles for tag names and values.
If you'd like to contribute, follow the RAWGraphs custom template guide.
npm installModify the chart locally with live reload.
npm run sandboxOpen http://localhost:9000 to view the sandbox.
Create the bundle to load in RAWGraphs.
npm run buildThe lib/index.umd.js file is the bundle you can load into RAWGraphs.
Original code by Michele Mauri