Fork of WeedPrices in 2011 fork
✓ Published0🌍 Public
This example shows a bar chart of the counts of entities from a dataset of U.S. senators, with each bar representing a distinct entity and its height mapped to the count. The visualization first displays the raw categorical distribution, then uses D3.js v7 to fetch the CSV data via `d3.csv` from a GitHub repository. The SVG rendering uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with axes added via `d3.axisBottom` and `d3.axisLeft`, while labels are manually appended as SVG text elements. The chart is drawn in a React-compatible HTML page, though the script itself is plain JavaScript with D3.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed