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

Viewing a saved revision (read-only)

be8596f9e64248b299d71e34fa8de940

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

0 stars0🌍 Public
RRadhakrishna246
Last edited Mar 5, 2022
Created on Mar 5, 2022

This example visualizes the top 10 most populous countries as a horizontal bar chart using React and D3. The code loads CSV data from a GitHub gist, processes the population values, and renders SVG rectangles with scaleBand and scaleLinear for the y and x axes respectively. It manually constructs ticks and gridlines, leveraging React’s state management with useEffect and useState alongside D3’s csv and max functions.

AI-generated description

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

See also React Starter.