SVG Example
✓ Published0🌍 Public
CCurran Kelleher
Last edited Sep 15, 2016
Created on Sep 14, 2016
Five static SVG rectangles form a simple bar chart, descending diagonally from the top-left to the bottom-right. The bars have equal widths and varying heights and y-positions, creating a staircase-like visual from a hardcoded JavaScript array of objects. The example uses D3 v4’s selection API to append rectangles to an SVG canvas, setting x, y, width, and height attributes from the data. The code demonstrates basic declarative binding of data to SVG shapes without animation or axes.
AI-generated descriptionA pseudo-bar chart giving a flavor of D3. Uses d3-selection and SVG.
Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/d0c9242fe9caa5c1ac1f4d98f642c855'>Pseudo Bar Chart I</a>
mit Licensed