Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed