Skip to main content
100%

ICE-6(Sai Nitish): Rendering Marks and Channels with React & D3

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

This example displays the top 20 countries by gold rates, using horizontal bars where length encodes the population value and the y-axis lists country names. Built with React and D3, it loads CSV data via `d3.csv`, scales positions with `d3.scaleBand` and `d3.scaleLinear`, and renders SVG rectangles for bars plus axis ticks and labels. The visualization is rendered entirely as SVG elements, with data fetched from a GitHub gist and displayed in a React component using `ReactDOM.render`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes