Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

6c3c425a5c5b4ab4b83d36ab9500b210

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

0 stars0🌍 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.