Skip to main content
100%

Fork of ICE-6 Bar Graph

✓ Published1🌍 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

MIT Licensed

Similar vizzes