Skip to main content
100%

SVG Example

✓ Published0🌍 Public
CCurran Kelleher
Last edited Sep 15, 2016
Created on Sep 15, 2016

This example displays a simple bar chart with five bars labeled A through E, where bar heights correspond to values from 5 down to 1. The visualization uses D3 v4’s `d3-selection` to bind data to SVG `rect` elements, and `d3-scale` with `scaleBand` for the x-axis positions and `scaleLinear` for the y-axis scaling. The page creates an SVG canvas in the body and renders all bars via chained `enter()` and `append` calls, with no axes or labels added.

AI-generated description

A pseudo-bar chart for demonstrating basic D3 usage, including:

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/82bb6d11bda885b0eb4f29d46b5cee86'>Pseudo Bar Chart II</a>

mit Licensed

Similar vizzes