HOME

3. Drawing (and attributes)

In this page we show how to use D3.js to create, modify and manage SVG elements. In other words we add SVG elements to the DOM without writing static SVG elements:
instead we add the SVG elements dynamically using the D3.js API.

Moreover we introduce the attr() instruction, which allows to set the element's attribute at run-time.


Show code


D3.js API reference