🌍 Public
Viewing a saved revision (read-only)
c5732e3c7c4f4ee6a3bc4ff835caee9d
ICE-6: Rendering Marks and Channels with React & D3
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 descriptionA demonstration of how to start using D3 version 6.