ICE-6: Rendering Marks and Channels with React & SVG
✓ Published0🌍 Public
Ssushmithameher-patnam
Last edited Mar 8, 2023
Created on Mar 6, 2023
A horizontal bar chart displays the age of 30 students by school year, using a React component that renders SVG marks. The visualization uses `scaleBand` for the y-axis school-year categories and `scaleLinear` for the x-axis age values, with tick marks and red grid lines generated manually through `xScale.ticks()`. Data loads from a CSV file via `d3.csv`, and React's `useState` and `useEffect` hooks manage the asynchronous data fetching. The bars show age increasing across school years, with the code leveraging `d3.max` and `format` from the D3 v5 library.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed