Skip to main content
100%

Bar chart with D3.js

✓ Published0🌍 Public
GGogineni44
Last edited Apr 5, 2023
Created on Apr 5, 2023
Forked from React & D3 Starter

A bar chart ranks the "most loved" programming languages by percentage, from Rust at the top to Clojure at the bottom. Built with D3.js v5, it uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, rendering bars as SVG rectangles. On mouse hover, the chart highlights the selected bar, draws a dashed threshold line with `line#limit`, and displays the percentage divergence of every other language from the hovered one. A dataset of ten languages is hardcoded in the JavaScript.

AI-generated description
MIT Licensed

Similar vizzes