Skip to main content
100%

ICE-6: Rendering Marks and Channels

✓ Published0🌍 Public
LLakshmiVandanaNunna
Last edited Mar 23, 2022
Created on Mar 2, 2022

This horizontal bar chart displays the top 10 U.S. states with the highest Democratic vote counts from the 2020 election dataset. Each bar’s length encodes the vote total using a linear scale, while color differentiates states. The visualization is built with React and D3 v5, using `scaleBand` for y-axis positioning, `scaleLinear` for x-axis scaling, and SVG `rect` elements for marks. Data is loaded via `d3.csv`, sorted descending, and sliced to show only the top ten states.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes