ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
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.
MIT Licensed