Skip to main content
100%

Fork of Bar Char in D3

✓ Published0🌍 Public
EEunice Tu
Last edited Feb 17, 2024
Created on Feb 17, 2024
Forked from Bar Char in D3

This bar chart visualizes the relationship between inherited type and average total worth for billionaires, using a dataset loaded from a GitHub gist via `d3.csv`. The visualization employs `d3.scaleBand` for the categorical X-axis and `d3.scaleLinear` for the numeric Y-axis, rendering bars as SVG rectangles. Hovering changes bar color from steel blue to orange, and axes are styled with custom CSS. The chart updates its height based on the maximum value in the data, with a tidy layout defined by explicit margins.

AI-generated description
MIT Licensed

Similar vizzes