Skip to main content
100%

DV ICE-6 Bar Graph

✓ Published0🌍 Public
Yyamunaunt
Last edited Mar 22, 2023
Created on Mar 21, 2023

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 description

A whole smiley face

MIT Licensed

Similar vizzes