Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-6 Bar Graph

Public visualization

ICE-6 Bar Graph

0 stars2🌍 Public
Llibramanju
Last edited Mar 11, 2023
Created on Mar 11, 2023

This example displays the average carbon emissions of cars by model year as a horizontal bar graph. It uses React hooks to load and filter CSV data from a GitHub gist, then renders SVG rectangles scaled with `d3.scaleBand` and `d3.scaleLinear`. The chart includes custom axes via `d3.axisBottom`-style tick rendering, with red gridlines and a title above the visualization.

AI-generated description

A whole smiley face

Comments

Sign in to join the discussion.

MIT Licensed