Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Responsive Bar Chart

Public visualization

Viewing a saved revision (read-only)

ae730a47ad274242b786268f2a13f490

Fork of Responsive Bar Chart

0 stars0🌍 Public
MM
Last edited Apr 10, 2024
Created on Apr 10, 2024

This example shows a responsive bar chart of U.S. state populations using D3.js. It fetches CSV data from a GitHub gist, parses it, and renders bars with d3.scaleBand and d3.scaleLinear. The chart uses the @curran/responsive-axes library to handle axis placement and labels, and includes an inner rectangle fill for visual clarity. Bars are drawn as SVG rect elements with dimensions scaled to the population values.

AI-generated description

A responsive bar chart.