🌍 Public
Viewing a saved revision (read-only)
1e751ffb7ba648cb90c0a6976ed38737
Making a Bar Chart
This example shows a simple bar chart comparing the number of "poots" for three categories: Cats, Dogs, and Ants. The visualization uses D3 v5 within a React framework to render the SVG. The code employs `scaleLinear` for the x-axis and `scaleBand` for the y-axis, then draws the bars with SVG `rect` elements. Data is loaded from a CSV file using `csv` and parsed with `d3.max`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.