Skip to main content
100%

Word Cloud

✓ Published1🌍 Public
BBaraneedharan N M
Last edited Aug 27, 2020
Created on Aug 27, 2020
Forked from Making a Bar Chart

This example shows a static word cloud built from a small set of predefined words, including "Hello," "Coding," and "Lovely Day." It uses the d3.layout.cloud API to compute word positions and angles, applying a fixed -45-degree rotation to every word. The words are rendered as SVG text elements, with a font size of 60 pixels and a steelblue fill. The data comes from a local `words.js` module, and the layout runs once, drawing all text at the center of the canvas.

AI-generated description
MIT Licensed

Similar vizzes