Skip to main content
100%

fresh bar chart

✓ Published0🌍 Public
Aaajungroth
Last edited Aug 22, 2017
Created on Aug 22, 2017

A simple bar chart visualizes eight hard-coded values, with each bar’s height proportional to its numeric data point. The bars are rendered as blue SVG rectangles with white strokes, drawn from a baseline at y=300 upward, on a 1000×1000 canvas. Using D3 v4, the code selects all `rect` elements, binds the data array via `data()`, and positions each bar with `attr('x')` and `attr('y')`, while `attr('height')` sets the bar length. The chart uses no axes or labels, focusing purely on raw value comparison.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes