Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
Kkalyanikotha
Last edited Mar 6, 2022
Created on Mar 6, 2022
This example displays a horizontal bar chart of the top 10 most populous countries, using a React component that fetches CSV data with `d3.csv` and renders SVG marks via JSX. It leverages `scaleBand` for the y-axis country categories, `scaleLinear` for the x-axis population values, and `max` to compute the domain. The chart includes custom tick labels and grid lines generated from `xScale.ticks`, with bars styled as `rect` elements.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed