Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE-6 Bar Graph

Public visualization

Viewing a saved revision (read-only)

8cb32333d3de4bfdb806d9508b2759f3

Fork of ICE-6 Bar Graph

0 stars1🌍 Public
MMgk1255
Last edited Mar 8, 2023
Created on Mar 8, 2023
Forked from ICE-6 Bar Graph

This fork of ICE-6 renders an SVG bar chart of Amazon prices in different states, showing the first 12 countries from a CSV dataset loaded via `d3.csv`. It uses React with the `useState` and `useEffect` hooks to fetch and store the data, then maps it to rectangular bars with `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. Axes are custom-built using `d3.axisBottom`-style tick generation, though the code manually draws grid lines and labels with SVG elements. The chart is titled “Amazon Prices in different States” and displays loading text until data arrives.

AI-generated description

A whole smiley face