🌍 Public
Viewing a saved revision (read-only)
6944c62cd357448a9b082d007fafce4d
Learn d3.js
This example demonstrates the basic data-binding workflow of D3.js version 4, using a static array of five numbers as the dataset. The code shows how `d3.select`, `selectAll`, `.data()`, and `.enter()` work together to create one paragraph element per data point. It appends `<p>` tags to the body and sets their text content with a callback function that returns each value. The visualization is minimal, focusing on the core enter selection pattern rather than scales or axes.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.