Skip to main content
100%

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

✓ Published0🌍 Public
Vvegurusaiprathyusha
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example shows a horizontal bar chart of COVID-19 case counts for 20 countries, using SVG marks rendered through React components. It combines React state management with D3 scales (`d3.scaleBand`, `d3.scaleLinear`) to position rectangles and axes. The code fetches CSV data from a GitHub gist, maps values with `d3.csv`, and manually draws tick lines and labels using JSX rather than D3 axis generators.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes