Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
SSaiipriiya
Last edited Mar 8, 2023
Created on Mar 8, 2023
This fork of ICE-6 renders a horizontal bar chart showing the basic cost of Netflix subscriptions in different countries, using a hybrid of React and D3. The visualization draws SVG rectangles scaled by D3’s `scaleBand` and `scaleLinear`, with grid lines and tick labels from `xScale.ticks()`. Data is loaded asynchronously via D3’s `csv` from a Gist URL, then sorted and sliced to the first 15 countries. React’s `useState` and `useEffect` manage the data fetch, while D3’s `max` and `format` handle axis scaling and tick formatting. The chart updates purely through declarative SVG markup within a React component.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed