Skip to main content
100%

fresh block

✓ Published0🌍 Public
PPacsangon
Last edited Mar 23, 2018
Created on Mar 23, 2018

A simple bar chart displays five fixed values (100, 200, 300, 150, 275) as blue vertical rectangles against an SVG canvas. The bars are positioned sequentially along the x-axis with a fixed width of 50 pixels, while their heights directly encode the numeric data, anchored to a 500-pixel-tall chart. The code uses D3 v4’s data join (`selectAll`, `data`, `enter`) to append SVG `rect` elements, calculating each bar’s `y` position as the difference between the chart height and its value. It sets a white stroke for visual separation, with no axes or labels present.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/curiousgabel/'>curiousgabel</a>'s block: <a href='http://bl.ocks.org/curiousgabel/c3eb0b0cbe28410281b564c756d38a61'>fresh block</a>

mit Licensed

Similar vizzes