Skip to main content
100%

Bar Chart Sequential Scale

✓ Published0🌍 Public
AAllen Ho
Last edited Mar 5, 2024
Created on Mar 3, 2024
Forked from HTML Starter

This bar chart visualizes the wealth of billionaires, using a sequential color scale where bar fill intensity corresponds to net worth in billions. The chart encodes value through both bar height and color, with a legend explaining the color mapping. Built with D3 v6, it loads CSV data, applies a linear color scale from white to blue, and renders SVG rectangles. The visualization uses `d3.scaleBand` for x-axis positioning and `d3.axisBottom` for ticks. A `d3.legendColor` legend clarifies the color scale. Hovering highlights each bar in red, and tooltips display exact values.

AI-generated description
MIT Licensed

Similar vizzes