Skip to main content
100%

d3js Exercice 3 - svg

✓ Published0🌍 Public
AAlainRo
Last edited Oct 10, 2017
Created on Oct 10, 2017

This example demonstrates a minimal SVG composition built with D3.js v4, combining geometric shapes without data binding. It shows a blue rectangle and a yellow circle positioned inside an SVG canvas of fixed dimensions, highlighting how basic shapes render and layer in a web document. The code explicitly uses D3’s selection and styling methods, though the main styling is applied directly via SVG attributes such as `width`, `height`, `fill`, and `cx`/`cy` for positioning. The visualization serves as an introductory exercise, with commented-out instructions suggesting color manipulation and transforms like `translate` and `rotate`. No dynamic data is involved; the focus is purely on static SVG rendering and potential interactive styling adjustments.

AI-generated description

d3js Exercice 3 - svg

Similar vizzes