Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public
Ssnehareddygurram
Last edited Mar 11, 2023
Created on Mar 11, 2023

This chart visualizes estimated migration data by showing the relationship between a person's age and the basic migration cost for a subset of 15 countries. The visualization uses an SVG canvas within a React application, employing `d3.scaleBand` for the categorical y-axis (country) and `d3.scaleLinear` for the quantitative x-axis (cost). Data is loaded asynchronously from a CSV file using `d3.csv` and rendered as horizontal `rect` marks, with axis ticks generated via `xScale.ticks()` and `d3.scaleBand().domain()`. The code demonstrates how React and D3 v5 can be combined to render marks and channels declaratively.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes