Skip to main content
100%

fresh block

✓ Published0🌍 Public
VVictorHom
Last edited Apr 24, 2018
Created on Apr 22, 2018

A simple bar chart displays seven blue rectangles of varying heights on a fixed 500-by-500 SVG canvas. The chart encodes the values from a hardcoded array—100, 250, 175, 200, 120, 50, and 60—as bar heights, with each bar positioned sequentially along the x-axis using a 50-pixel width. The visualization uses D3 v4’s data join (`selectAll` and `data`) to bind the array, then appends `<rect>` elements with `attr` calls to set x, y, width, height, and fill properties. White strokes separate adjacent bars.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes