Skip to main content
100%

ICE-6_BM

✓ Published1🌍 Public
Bbmurill2019
Last edited Mar 23, 2023
Created on Mar 22, 2023

This example shows the average hourly wages for 25 geographic areas as a horizontal bar chart, with bars colored the default SVG black and red gridlines marking the linear x-axis scale. Built with React and D3 v5, it loads a CSV of prevailing wage data via `d3.csv`, slices the dataset to the first 25 rows, and renders SVG rectangles positioned by `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis. The React component uses hooks (`useState`, `useEffect`) to asynchronously fetch and parse the data, then manually renders axis ticks and gridlines with D3 selectors and SVG elements.

AI-generated description

A whole smiley face

MIT Licensed

Similar vizzes