Skip to main content
100%

Vertical bars but d3.v3

✓ Published0🌍 Public
SSebastian Barrett
Last edited Nov 29, 2021
Created on Nov 29, 2021

A vertical bar chart displays monthly values from a two-column CSV, with dates on the x-axis and values on the y-axis. The visualization uses the older d3.v3 API, loading the library from a CDN into the page. It constructs the chart with an ordinal scale for the date categories, a linear scale for the value range, and SVG axes, then renders steelblue rectangles for the bars. The code employs chained methods like `d3.scale.ordinal()`, `d3.svg.axis()`, and `.rangeRoundBands()` to position and size the bars.

AI-generated description

A simple bart chart made with d3.v3. Credits: https://bl.ocks.org/d3noob/8952219

MIT Licensed

Similar vizzes