Das Line Sandbox
✓ Published0🌍 Public
This example demonstrates how to build a simple line chart using D3 v5 with SVG rendering. A static dataset of five coordinate pairs is transformed into a path string using the `d3.line()` generator, then applied to an SVG `<path>` element via `d3.select`. The code showcases modular JavaScript by importing the `select` function from the `d3` package and a local ES6 module, while loading D3 from UNPKG in the HTML file.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed