Untitled
✓ Published0🌍 Public
This example shows a minimal SVG graphic containing a red text label with two tspan lines. It introduces D3 version 6 by using the `select` function from the d3 module to set the body’s text content to “Hello D3 version 7”, despite the README’s reference to version 6. The SVG is defined directly in the HTML markup with fixed width and height attributes, using basic text and tspan elements for line breaks. The code demonstrates how to combine static SVG with a D3 selection for a simple DOM update.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed