Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Responsive Bar Chart

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed