Skip to main content
100%

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

✓ Published0🌍 Public
AAditya Pujari
Last edited Mar 6, 2022
Created on Mar 6, 2022
Forked from D3 Starter

This example shows the cost of Netflix subscriptions across twelve countries using horizontal bars, where bar length encodes price and country names appear on the y-axis. Built with React and D3, the component loads CSV data via `d3.csv`, then renders SVG marks directly in JSX using `scaleBand` for country categories and `scaleLinear` for cost values. Axes are drawn manually with `xScale.ticks()` and `yScale.domain()`, while `useEffect` fetches the data asynchronously.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes