Preview Updated 2026-05-10

WordCloud

Spiral-placed term frequency cloud — quickly surface tag weights, top comment keywords, dominant tech-stack terms.

Basic usage

Font size encodes weight; words are placed along an Archimedean spiral outward from center, avoiding overlap. rotateRatio controls vertical share; seed keeps the layout reproducible.

背景 视口

API

PropTypeDefaultDescription
items{ text, weight, color?, rotate? }[]Data
widthnumber480Canvas width
heightnumber280Canvas height
minFontnumber12Min font px
maxFontnumber48Max font px
rotateRationumber0.3Vertical chance (0–1)
spiralStepnumber4Spiral step (smaller = tighter / slower)
palettestring[]viz-1..8Default colors
seednumber1Reproducible-layout RNG seed
ariaLabelstringSR label
size'sm' | 'md' | 'lg''md'Font scale

Payload: { index, item }.

Words that don’t fit are silently dropped (no overlap). Tighten by lowering spiralStep or growing width/height.

反馈与讨论

WordCloud · Discussion

0
0 / 600
正在加载评论...