🌍 Public
Viewing a saved revision (read-only)
f5cca178c5de4b1ea2274c45d6a46109
DV ICE-6 Bar Graph
This chart displays the average gas prices per gallon for fifteen countries, using horizontal bars sorted by country name. The visualization loads data from a CSV file via `d3.csv`, then maps the price values to bar widths using `d3.scaleLinear` and country names to y-axis positions with `d3.scaleBand`. The React component renders an SVG, with gridlines generated from `xScale.ticks()`, and sticks to a functional, no-frills style without color or labels on the bars themselves.
AI-generated descriptionA whole smiley face