Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
MM
Last edited Mar 13, 2024
Created on Mar 13, 2024
This example displays a horizontal bar chart of the top 10 most populous states in India, using React components to render SVG marks and D3 scales for layout. The chart encodes population values as bar widths on a linear x-axis and state names as categorical bands on a band scale y-axis. Data loads asynchronously from a CSV file via `d3.csv`, and the code manually constructs axes and tick marks without using D3’s axis generators, relying instead on `scaleLinear`, `scaleBand`, and `max` from D3 v5.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed