Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
This horizontal bar chart displays the basic cost of Netflix subscriptions across 15 countries, using React state and D3 scales. The React component loads CSV data from a GitHub gist via `d3.csv`, then renders SVG bars with `scaleLinear` for the x-axis and `scaleBand` for the y-axis country categories. Axis ticks and gridlines are generated manually from `xScale.ticks()`, while labels appear without helper axes. The visualization updates asynchronously after data loading, with D3’s `max` and `format` functions supporting the quantitative encoding.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed