🌍 Public
Viewing a saved revision (read-only)
3ca0be9cd5514d8d8beb3d2ea093a7a0
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.