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
Ssudhamshu24
Last edited Mar 7, 2022
Created on Mar 7, 2022

This visualization displays the population of 20 countries as horizontal bars, with country names on the y-axis and population values on the x-axis. The SVG chart is rendered using React components alongside D3 scale functions and SVG elements. The code loads CSV data from a GitHub Gist, parses the population column, and uses `scaleBand` for the y-axis and `scaleLinear` for the x-axis. Axis ticks and labels are generated manually with D3’s `ticks()` method, while bars are drawn as `<rect>` elements.

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