ICE-6: Rendering Marks and Channels with React & D3
✓ Published1🌍 Public
BBajiSharifPatan@my.unt.edu
Last edited Mar 6, 2022
Created on Mar 6, 2022
This visualization displays the top 10 countries by nuclear energy usage, rendered as a horizontal bar chart using React and D3 v5. The React component manages state with useState and useEffect, while D3’s scaleBand and scaleLinear compute the bar positions and widths from CSV data loaded via d3.csv. SVG rectangles encode each country’s nuclear value, with axes and grid lines drawn manually using D3’s tick methods and React’s JSX syntax.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed