Interactive word cloud
Relative prominence across a bounded vocabulary of weighted terms.
- Purpose
- Compare relative prominence across a bounded set of weighted terms.
- Use when
- A quick impression of a small vocabulary is useful.
- Avoid when
- Exact ranking, close weights, or complete reading order matters; use a sorted list or bars.
- Equivalent data
- Each variant includes an exact word, value, and semantic-class list.
Exact word values
| Word | Value | Class |
|---|---|---|
| Sam S Club | 10000 | retail |
| Macys | 6181 | retail |
| Amy Schumer | 4386 | |
| Jurassic World | 4055 | |
| Charter Communications | 2467 | |
| Chick Fil A | 2244 | |
| Planet Fitness | 1898 | |
| Pitch Perfect | 1484 | |
| Express | 1689 | |
| Home | 1112 | |
| Johnny Depp | 985 | |
| Lena Dunham | 847 | |
| Lewis Hamilton | 582 | |
| KXAN | 555 | |
| Mary Ellen Mark | 550 | |
| Farrah Abraham | 462 | |
| Rita Ora | 366 | |
| Serena Williams | 282 | |
| NCAA baseball tournament | 273 | |
| Point Break | 265 |
Exact word values
| Word | Value | Class |
|---|---|---|
| Sam S Club | 10000 | retail |
| Macys | 6181 | retail |
| Amy Schumer | 4386 | |
| Jurassic World | 4055 | |
| Charter Communications | 2467 | |
| Chick Fil A | 2244 | |
| Planet Fitness | 1898 | |
| Pitch Perfect | 1484 | |
| Express | 1689 | |
| Home | 1112 | |
| Johnny Depp | 985 | |
| Lena Dunham | 847 | |
| Lewis Hamilton | 582 | |
| KXAN | 555 | |
| Mary Ellen Mark | 550 | |
| Farrah Abraham | 462 | |
| Rita Ora | 366 | |
| Serena Williams | 282 | |
| NCAA baseball tournament | 273 | |
| Point Break | 265 |
Exact word values
| Word | Value | Class |
|---|---|---|
| Sam S Club | 10000 | retail |
| Macys | 6181 | retail |
| Amy Schumer | 4386 | |
| Jurassic World | 4055 | |
| Charter Communications | 2467 | |
| Chick Fil A | 2244 | |
| Planet Fitness | 1898 | |
| Pitch Perfect | 1484 | |
| Express | 1689 | |
| Home | 1112 | |
| Johnny Depp | 985 | |
| Lena Dunham | 847 | |
| Lewis Hamilton | 582 | |
| KXAN | 555 | |
| Mary Ellen Mark | 550 | |
| Farrah Abraham | 462 | |
| Rita Ora | 366 | |
| Serena Williams | 282 | |
| NCAA baseball tournament | 273 | |
| Point Break | 265 |
Usage Example
@interactivewordcloud.WordCloud(interactivewordcloud.Config{
Label: "star shape",
Series: interactivewordcloud.Series{
Name: "wordcloud",
Words: []interactivewordcloud.Word{
{Name: "Sam S Club", Value: 10000, Class: "retail"},
{Name: "Macys", Value: 6181, Color: "#ff8a3d"},
},
Options: interactivewordcloud.SeriesOptions{
Shape: interactivewordcloud.ShapeStar,
SizeRange: &interactivewordcloud.SizeRange{Min: 14, Max: 80},
},
},
})Shapes
Shapes alter layout only. The exact weighted list remains the reliable comparison surface.
Go API
v0.0.1The examples above cover behavior and composition. pkg.go.dev is the canonical reference for exported types, functions, methods, and Go documentation.
github.com/araihu/goshtoso-charts/components/interactive/wordcloudEnabled, disabled, hidden, and omitted wrapper behavior, controls, export, and client transitions are shared by every chart. Review chart controls, then compare static/vector and interactive capabilities.