Simple bar graph in v6
✓ Published0🌍 Public
Dd3noob
Last edited Sep 12, 2020
Created on Sep 12, 2020
This example shows a simple bar graph of sales figures per salesperson, rendered as an SVG using d3.js v6. It loads data from a CSV file with `d3.csv`, maps the data to a `d3.scaleBand` for the x-axis and a `d3.scaleLinear` for the y-axis, and draws rectangles for each bar. Axes are added with `d3.axisBottom` and `d3.axisLeft`. The chart uses a fixed margin layout and steel-blue bars.
AI-generated descriptionThis is a simple bar graph written using d3.js v6.
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 6 of d3.js.
mit Licensed