Skip to main content
100%

Bar chart with D3.js

✓ Published0🌍 Public
KKELVIN WAMBUA NZIOKI
Last edited Apr 2, 2023
Created on Apr 2, 2023
Forked from D3 Starter

This visualization presents a bar chart of the most loved programming languages in 2018, using data from a Stack Overflow survey. It shows the percentage of developers who love each language, with bars colored per language. Built with D3 v5, the chart uses `d3.scaleBand` and `d3.scaleLinear` to map data to SVG rectangles. Hovering a bar triggers a transition that highlights it, draws a reference line at the hovered value, and displays divergence percentages for all other bars, using D3 selections and `transition.attr`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes