Skip to main content
100%

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

✓ Published0🌍 Public
IIndhuKrishnaraj
Last edited Mar 8, 2023
Created on Mar 8, 2023
Forked from Hello VizHub

This example visualizes the top 15 countries by basic Netflix subscription cost using a horizontal bar chart rendered as SVG. It loads data from a CSV file via `d3.csv` and uses React hooks (`useState`, `useEffect`) to manage the asynchronous data fetching. The chart employs `d3.scaleBand` for the categorical y-axis (country names) and `d3.scaleLinear` for the quantitative x-axis, with custom tick rendering for gridlines and labels. All marks are drawn manually as `<rect>` elements within a React component, combining D3’s scaling and data utilities with React’s declarative DOM updates.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes