Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
JJenna Hamza
Last edited Jan 4, 2023
Created on Jan 4, 2023

This example shows a horizontal bar chart of population data for the top ten countries, with a linear scale for population and a band scale for country names. It is built with React, D3 v7, and SVG, using custom components for the axes and bars. The data is loaded from a CSV file via D3's `csv` function, and the chart is rendered declaratively by mapping the dataset to SVG `rect` and `text` elements.

AI-generated description

Loads in data [data about CSS named colors] (https://gist.githubusercontent.com/jhamza91/65b9f2c695f1e802e483143f5eb1b73c/raw/cssNamedColors.csv) using d3 uses React to keep track of state of data as a radial burst.

MIT Licensed

Similar vizzes