Simple bar graph in v4
✓ Published0🌍 Public
Dd3noob
Last edited Nov 26, 2019
Created on Jul 20, 2016
This example shows a simple bar chart of sales figures per salesperson, rendered as SVG rectangles. It uses D3 v4 with a `d3.scaleBand` for the x-axis and a `d3.scaleLinear` for the y-axis, pulling data from an external CSV file. The chart includes bottom and left axes via `d3.axisBottom` and `d3.axisLeft`. Data is loaded asynchronously with `d3.csv`, and bar heights are calculated relative to the maximum sales value.
AI-generated descriptionThis is a simple bar graph written using d3.js v4.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 4 of d3.js.
mit Licensed