Skip to main content
100%

ICE-6: Rendering Marks and Channels with React & D3

✓ Published2🌍 Public
Rradhadevarapu
Last edited Mar 8, 2023
Created on Mar 7, 2023

This example visualizes annual income by profession for the first 15 records of a CSV dataset, rendering a horizontal bar chart in SVG. It combines React with D3 v5, using `d3.csv` to load data, `d3.scaleBand` and `d3.scaleLinear` for axes, and manually drawing tick marks and grid lines via JSX mapped over scale domains. React state and hooks manage the asynchronous data loading, while bar rectangles are sized and positioned directly with scale outputs.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes