SVG Demo
✓ Published0🌍 Public
This demo displays a minimal SVG visualization: a single D3 axis rendered inside an SVG element. The axis is created from a two-value data array, with a linear scale using the extent of the data and a bottom-oriented axis. The code uses d3.scaleLinear, d3.extent, and d3.axisBottom, and calls the axis with a D3 selection. The scale’s domain is normalized with .nice(), and the axis is placed in a group with a transform offset. The bundle.js file contains the compiled index.js, which imports these D3 v5 functions directly.
AI-generated descriptionMIT Licensed