Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public
Ppravalliyaram
Last edited Mar 7, 2022
Created on Mar 7, 2022

This visualization displays the ages of the top 20 players from a CSV dataset as a horizontal bar chart. Each player is represented by a blue rectangle, with the bar length encoding age using a linear scale, while player names are mapped to the y-axis using a band scale. The code integrates React’s `useState` and `useEffect` hooks with D3’s `csv`, `scaleBand`, `scaleLinear`, and `max` functions to load and transform data. SVG rendering is handled directly through React elements, with manual grid lines and tick labels generated from D3’s scales.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes