Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

tryin smthn

Public visualization

tryin smthn

0 stars0🌍 Public
Mmohamedabbessi
Last edited Oct 15, 2023
Created on Oct 15, 2023

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 description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed