Skip to main content
100%

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

✓ Published0🌍 Public
SSamanvitha1
Last edited Jun 26, 2022
Created on Jun 26, 2022

This example shows a horizontal bar chart of COVID-19 case counts for 20 countries, using length as a visual channel to encode the number of reported cases on a given date. The chart is built with React components that render SVG elements, while D3’s `d3.csv`, `scaleBand`, and `scaleLinear` handle data loading and scaling. Axes are manually constructed by mapping tick values to SVG lines and text labels. The data comes from a remote CSV file containing daily case numbers per country.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes