Skip to main content
100%

Das Line Sandbox

✓ Published0🌍 Public
DDasbach.EJ
Last edited Apr 16, 2021
Created on Apr 16, 2021
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes