Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Text Wrap

Public visualization

Viewing a saved revision (read-only)

aa254fb8fd6a4b808672c15be69eb725

Text Wrap

0 stars0🌍 Public
Ssghanapuram
Last edited Mar 19, 2020
Created on Mar 12, 2020
Forked from HTML Starter

This bar chart displays the percentage of people leaving Facebook, with each bar labeled by a humorous reason, such as "Family in feud with Zuckerbergs" and "Discovered how to 'like' things mentally." The chart uses React for the user interface and D3.js (v4) for rendering SVG graphics. The code employs `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the numeric y-axis, and a custom `wrap` function that utilizes SVG text manipulation to split long labels across multiple lines, ensuring they fit within each bar’s width.

AI-generated description

A bare minimum HTML page.

See also React Starter.