Skip to main content
100%

simple bar chat dataset

✓ Published0🌍 Public
EEnzoTheBrown
Last edited Nov 9, 2017
Created on Nov 9, 2017

This example shows a set of categorical bars colored black and white, with each bar labeled by a letter from A to J. It uses D3 v4 to load semicolon-delimited data from a CSV file via `d3.dsvFormat` and `d3.text`, then renders the chart as SVG rectangles and text elements. The x and y scales are created with `d3.scaleLinear`, with domains set after the data is parsed. The chart itself does not display bars; it only shows the text labels positioned along the x-axis, as the code appends text elements but no rect elements.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/c607174fc6fd5c7bfaa804d46ca70eab'>simple bar chat</a>

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/8fd6bffd4aca9e8f2181ba331070f60b'>simple bar chat from dataset</a>

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/98c007fd3367cd0665ebd15299c3bfdc'>simple bar chat updates</a>

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/66505e5ae61b0908ee857ecf54e508d9'>simple bar chat dataset</a>

mit Licensed

Similar vizzes