FLAG
✓ Published0🌍 Public
LLaurynKW
Last edited Feb 1, 2018
Created on Feb 1, 2018
This example displays a simple French flag made of three vertical rectangles. The visualization is built with D3 v4 and renders to an SVG canvas. The code defines a small dataset of three objects with fill colors and x-coordinates, then uses `svg.selectAll("rect")`, `.data()`, and `.enter().append("rect")` to create the rectangles. Each rectangle’s position, size, and color are set via attribute functions that read from the data. The flag is placed on a fixed 960 by 500 pixel stage, with the rectangles starting at y=100 and each having a width of 180 and height of 200.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed