Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Word Cloud

Public visualization

Word Cloud

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed