Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels (Bar Chart)

✓ Published0🌍 Public
Mmanishcheruku
Last edited Mar 11, 2023
Created on Mar 11, 2023

This fork of ICE-6 renders a horizontal bar chart showing the 2022 population of RICH students, displaying each student’s name on the y-axis and their marks on the x-axis. The code uses React hooks (`useState`, `useEffect`) to load a CSV from a GitHub gist via `d3.csv`, then renders SVG marks with `rect` elements scaled by `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Axis ticks are manually drawn with `line` and `text` elements, and the chart is limited to the first three rows of data.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes