Skip to main content
100%

4. x-y-axis barChart

✓ Published0🌍 Public
深深度碎片
Last edited Aug 1, 2016
Created on Jul 19, 2016

This example shows a bar chart of letter frequencies in English text, with the x-axis listing letters A through Z and the y-axis scaling from 0 to the maximum value. Each bar displays its numeric value directly above it in orange text. The chart is rendered as an SVG using D3 v4, with d3.scaleLinear for the y-axis and d3.scaleBand for the x-axis. Data is loaded from a TSV file and drawn via d3.axisBottom, d3.axisLeft, and appended rect elements.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/EmbraceLife/'>EmbraceLife</a>'s block: <a href='http://bl.ocks.org/EmbraceLife/96743288660fce0d41d253e3d5ee4521'>4. barChart3.b.v3</a>

forked from <a href='http://bl.ocks.org/EmbraceLife/'>EmbraceLife</a>'s block: <a href='http://bl.ocks.org/EmbraceLife/677054c8f535c77ddd95485523d97fcd'>4. barChart3.b.v4</a>

forked from <a href='http://bl.ocks.org/EmbraceLife/'>EmbraceLife</a>'s block: <a href='http://bl.ocks.org/EmbraceLife/fe0526cedbadbf1b434f9ddaf6a3b5b0'>4. barChart3.c.v3</a>

gpl-3.0 Licensed

Similar vizzes