Skip to main content
100%

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

✓ Published1🌍 Public
TTejaswicmandava
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from D3 Starter

This example shows the Netflix basic subscription price across 15 countries using a horizontal bar chart rendered with React and D3 v5. The visualization encodes price as bar length on a linear scale, with country names on a band scale. Data loads from a CSV file via `d3.csv`, while React manages state through the `useState` and `useEffect` hooks. D3’s `scaleBand`, `scaleLinear`, and `max` functions compute the scales, and React maps the data to SVG `<rect>` and `<text>` elements.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes