Skip to main content
100%

Fork of D3 Bar Chart

✓ Published0🌍 Public
TTony Mai
Last edited Feb 27, 2026
Created on Feb 27, 2026
Forked from 51. D3 Bar Chart

This fork of a D3 bar chart displays a static dataset of 20 numeric values as vertical bars, with each bar’s height and color intensity proportional to its value and labeled with its number. Built with D3.js version 4.5.0, the SVG is created via `d3.select('body').append('svg')`, and bars and text are added using `selectAll('rect').data(dataset).enter().append('rect')` and a similar text chain, with `attr` calls setting positions, dimensions, and fill colors. The chart uses a simple linear mapping from data to pixel coordinates, with no animation or interaction.

AI-generated description
MIT Licensed

Similar vizzes