tryin smthn
✓ Published0🌍 Public
This example shows an SVG bar chart of Tunisia’s GDP from 1971 to the latest year in the dataset, with axes and gridlines. It uses React’s `useState` and `useEffect` to load CSV data via `d3.csv`, then renders the chart with `d3.scaleLinear` for both x and y scales. The bars are drawn as `rect` elements, with a `d3.axisBottom` scale applied to a group element for the x-axis. The data is fetched from a GitHub-hosted CSV file and plotted in a fixed 960×500 viewport.
AI-generated descriptionA program that follows your mouse with a circle.
MIT Licensed