ICE-6 Bar Graph
✓ Published0🌍 Public
This example shows a horizontal bar graph of penguin classifications based on island, with bar lengths representing body mass in grams. The visualization uses React state hooks to load CSV data, then renders the bars as SVG rectangles. It employs d3.scaleBand for the categorical y-axis, d3.scaleLinear for the continuous x-axis, and d3.max to compute the domain. Gridlines and tick labels are manually drawn using d3 axis methods, while the data comes from a gist-hosted CSV file.
AI-generated descriptionA whole smiley face
MIT Licensed