Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
Ggayathri
Last edited Mar 26, 2022
Created on Mar 26, 2022
This example renders a horizontal bar chart of the top 10 most populous countries in 2019. It uses React to manage the component state and render the SVG, while D3 is used for data loading with `csv` and for constructing the scales, including `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The chart displays axis ticks and labels generated from the D3 scale domains, alongside rect marks whose widths encode each country's population. Data is fetched from a CSV file hosted on GitHub.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed