Learn d3.js
✓ Published1🌍 Public
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.
MIT Licensed