A modern, deterministic, React 19–native Word Cloud / Tag Cloud visualization for Grafana v13+.
Features · Screenshots · Deployment · Data Sources · Panel Options · Local Demo · Migration
Built from the ground up by MapColonies as a robust, actively maintained replacement for the unmaintained magnesium-wordcloud-panel:
-
Grafana v13+ & React 19 Native: Zero legacy
@grafana/toolkitor abandonedreact-wordclouddependencies. Built on@grafana/create-plugin,@grafana/*13.x SDKs, andd3-cloudv2. -
Stable Across Refreshes: Uses a deterministic Mulberry32 seeded PRNG so your word cloud never jumps around randomly on every dashboard refresh.
-
Works With Any Data Source: SQL (PostgreSQL, MySQL, ClickHouse), Elasticsearch, OpenSearch, Prometheus, Loki, InfluxDB, Infinity/JSON, and TestData.
-
Plugin ID:
mapcolonies-wordcloud-panel -
Grafana Compatibility:
>= 13.0.0(verified via automated Playwright E2E across13.0,13.1,13.2,13.3, andnightly)
| Capability | Details |
|---|---|
| Dual Data Ingestion | Pre-aggregated (fields) mode auto-detects word + value columns (with manual pickers), or switch to client-side tokenize mode to split raw logs/text with Unicode regex, case folding, and stop-word filtering. |
| Multi-Frame & Wide-Format Support | Merges duplicate words across rows and DataFrames (sum, max, mean, count) and automatically falls back to series displayName for Prometheus and wide-format Elasticsearch queries. |
| Crisp Declarative SVG & RTL | Declarative React 19 <svg> rendering powered by d3-cloud v2 — razor-sharp at any DPI, debounced on panel resize, with full Unicode, emoji, and Hebrew/Arabic (RTL) support. |
Native Grafana FieldConfig |
Full support for Grafana color schemes (Continuous palettes, Thresholds, Classic Palette, Single Color), units, decimals, value mappings, overrides, plus an optional per-word colorField column. |
| Rich Interactivity | Theme-aware hover tooltips (full untruncated word, formatted value, % share), smooth hover dimming, native DataLinks (direct open or multi-link menu), keyboard accessibility, and click-to-set dashboard variables ($selected_word). |
| Typography & Layout Controls | Configurable font family/weight, min/max font sizes, linear / sqrt / log scaling, archimedean / rectangular spirals, rotation presets (horizontal, 0°/90°, custom range), word padding, truncation, and layout seed. |
Replace v1.0.2 / 1.0.2 below with any tag from the GitHub Releases page.
Unsigned Plugin Note: Releases published without a
GRAFANA_ACCESS_POLICY_TOKENare unsigned. Grafana requires explicitly allowlisting unsigned plugins viaGF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=mapcolonies-wordcloud-panel(orallow_loading_unsigned_plugins = mapcolonies-wordcloud-panelunder[plugins]ingrafana.ini). If you sign the plugin with a Grafana Access Policy token, this allowlist is not required.
grafana cli \
--pluginUrl https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip \
plugins install mapcolonies-wordcloud-panelAdd the allowlist to grafana.ini (if using an unsigned release) and restart Grafana:
[plugins]
allow_loading_unsigned_plugins = mapcolonies-wordcloud-panelPass the GitHub Release .zip URL directly to GF_INSTALL_PLUGINS:
services:
grafana:
image: grafana/grafana:13.2.4
ports:
- '3000:3000'
environment:
GF_INSTALL_PLUGINS: 'https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip;mapcolonies-wordcloud-panel'
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: 'mapcolonies-wordcloud-panel'Add the plugin URL and allowlist to your Helm values.yaml:
plugins:
- https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip;mapcolonies-wordcloud-panel
grafana.ini:
plugins:
allow_loading_unsigned_plugins: mapcolonies-wordcloud-panelFor air-gapped Kubernetes clusters, mirror mapcolonies-wordcloud-panel-1.0.2.zip to your internal artifact registry (Artifactory / Nexus / S3 / Nginx) and point plugins: to that internal URL (or mount the unzipped mapcolonies-wordcloud-panel/ directory into /var/lib/grafana/plugins/mapcolonies-wordcloud-panel via an initContainer / PVC).
# 1. Download the release archive and checksum file
curl -LO https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip
curl -LO https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/SHA256SUMS
# 2. Verify archive integrity
sha256sum -c SHA256SUMS
# 3. Extract into Grafana's plugins directory
unzip mapcolonies-wordcloud-panel-1.0.2.zip -d /var/lib/grafana/plugins/
# 4. Restart Grafana
sudo systemctl restart grafana-serverTo publish signed releases automatically in GitHub Actions, generate a Grafana Access Policy Token and save it as a repository secret named GRAFANA_ACCESS_POLICY_TOKEN. The Release workflow automatically runs pnpm run sign when this secret is present.
SELECT word, count, color
FROM word_frequencies
ORDER BY count DESC;- Set Input mode to
Word + Value fields(default). - Optional: set Color field to
colorto use per-row hex/CSS colors instead of GrafanaFieldConfigpalettes.
- Metric:
Count - Group by:
Terms->tag(orservice.keyword), Order byDoc Countdesc. - Leave Word / text field and Value / count field empty (auto-detected).
- Query raw log documents (Elasticsearch
Raw Datametric or Loki log query). - Set Input mode to
Tokenize text. - Set Word / text field to
message(Elasticsearch) orLine(Loki). - Configure Stop words (e.g.,
the, and, in, to, for, of) and Case normalization (Lowercase).
sum by (service) (increase(http_requests_total[1h]))
- Leave Word / text field and Value / count field empty; the plugin automatically extracts each series'
displayNameas the word and aggregates its numeric values.
| Category | Option | Description |
|---|---|---|
| Data | Input mode |
Word + Value fields (pre-aggregated) or Tokenize text (client-side word counting). |
| Data | Word / Value / Color field |
Explicit field pickers (auto-detects first string & numeric fields when empty). |
| Data | Duplicate word aggregation |
Combine duplicate words across rows/frames via Sum, Max, Mean, or Count. |
| Data | Max words / Minimum value / Stop words |
Cap rendered words (default 150), filter low-frequency terms, and exclude stop words. |
| Tokenization | Delimiter regex / Case normalization |
Unicode-aware regex split (default [^\p{L}\p{N}_-]+) and Lowercase / Uppercase / Preserve. |
| Typography & Layout | Font family / Font weight / Min & Max size |
Inherits Grafana theme font by default; configurable pixel bounds. |
| Typography & Layout | Font size scale / Spiral / Padding |
Linear, Sqrt, or Log scaling; Archimedean or Rectangular spiral. |
| Typography & Layout | Rotation / Max word length / Layout seed |
Horizontal, 0° / 90°, or custom angle steps; Unicode-safe truncation; deterministic seed. |
| Interactivity | Tooltip / Percentage share |
Theme-aware hover tooltip showing full word, formatted value, and % share. |
| Interactivity | Click-to-set dashboard variable |
Optional dashboard variable name (without $) updated via locationService when clicking a word. |
| Standard options | Color scheme / Thresholds / Units / Data links |
Native Grafana FieldConfig styling and link interpolation (${__data.fields.*}, ${__value.raw}). |
This repository includes a self-contained docker-compose.yaml bundling Grafana 13.2.4, PostgreSQL 16, Elasticsearch 8.17, automatic seed scripts (provisioning/seed/01-seed.sql and provisioning/seed/seed-es.sh), provisioned datasources, and a 7-panel demo dashboard.
# 1. Install dependencies & build the plugin
pnpm install
pnpm run build
# 2. Start PostgreSQL + Elasticsearch (auto-seeded) + Grafana 13
docker compose up --buildOpen http://localhost:3001/d/mapcolonies-wordcloud-demo (override port via GRAFANA_PORT=3000).
pnpm run seed # Re-seed PostgreSQL + Elasticsearch
pnpm run seed -- --only postgres --stress 300 # Re-seed PostgreSQL + 300 synthetic words
pnpm run seed -- --only es # Re-seed Elasticsearch index with fresh timestampspnpm run dev # Watch-mode webpack build
pnpm run typecheck # TypeScript check
pnpm run lint # ESLint check
pnpm run test:ci # Jest + React Testing Library unit tests
pnpm run build # Production bundle -> dist/
pnpm run validate:react # Scan built bundle for React 19 compatibility
GRAFANA_URL=http://localhost:3001 pnpm run e2e # Playwright E2E against Docker Compose stackSee MIGRATION.md for manual migration steps and the automated dashboard JSON migration CLI (pnpm run migrate:dashboard).
- Contributions welcome — see CONTRIBUTING.md.
- Security disclosures — see SECURITY.md.
MIT © MapColonies

