Skip to main content
100%

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

✓ Published0🌍 Public
TTejaswicmandava
Last edited Mar 11, 2023
Created on Mar 11, 2023
Forked from HTML Starter

This example displays a horizontal bar chart of the top 15 movies by Meta_score, sourced from a CSV file of population-by-country data loaded via D3’s `csv` function. Using React with hooks (`useState` and `useEffect`) and D3 scales (`scaleBand`, `scaleLinear`), the SVG renders rectangles for each movie, with axes drawn manually from `xScale.ticks()` and the band domain. The chart demonstrates mark (rect) and channel (length) mapping, with all visualization elements generated in JSX.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes