oefening2
✓ Published0🌍 Public
GGeoJonna
Last edited Feb 23, 2018
Created on Feb 23, 2018
This example shows four horizontal bars rendered as SVG rectangles, with their widths proportional to values in a static data array of [20, 40, 50, 60]. The code uses a linear scale (`d3.scale.linear`) to map data values to pixel widths, then appends rectangles via `d3.selectAll("rect").data().enter()`. Each bar is positioned vertically by index, and all bars share a steelblue fill. The visualization duplicates the same bar-drawing block twice, though only the first set of rectangles is visibly rendered.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed