Skip to main content
100%

bar chart

✓ Published0🌍 Public
JJack Elsey
Last edited Jun 4, 2021
Created on May 25, 2021

This example shows a horizontal bar chart of sales figures per salesperson, with labeled x-axis ticks and y-axis categories. It loads CSV data from a remote gist using `d3.csv`, then renders the visualization as SVG with React components. The chart uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and `d3.max` to determine the domain. Grid lines are drawn for each tick value, and bars are positioned and sized using the scales’ range and bandwidth.

AI-generated description
MIT Licensed

Similar vizzes