Skip to main content
100%

Fork of Responsive Bar Chart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes