Bar Chart IIIa
✓ Published0🌍 Public
Mmbostock
Last edited Feb 23, 2016
Created on Nov 13, 2013
This example shows a simple SVG bar chart of letter frequencies, with steel-blue bars and white value labels. Each bar’s height corresponds to a data point from a tab-separated `data.tsv` file, and the chart is sized to 960 by 500 pixels. The code uses d3.v3’s `d3.scale.linear`, `d3.tsv`, and data joins via `selectAll`, `enter`, and `append` to create `g`, `rect`, and `text` elements, with the scale mapping values to pixel heights.
AI-generated descriptionA simple SVG bar chart. Part of the tutorial series Let’s Make a Bar Chart.
gpl-3.0 Licensed