Skip to main content
100%

simple bar chat dataset

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

A simple bar chart visualizes a small dataset of eleven named values, loaded from a semicolon-delimited CSV file. The chart displays each category label as text above its corresponding rectangle, with bar heights proportional to the numeric values. The code uses D3 v4 to parse the data with `d3.dsvFormat`, creates linear scales with `d3.scaleLinear`, and appends both `text` and `rect` elements to an SVG. The axes and scales are set after the CSV loads, while the bars themselves are positioned using the value accessor and index-based x-coordinates.

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