Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar chart with D3.js

Public visualization

Viewing a saved revision (read-only)

5baf7bc1a3d249679289872a6bd782f0

Fork of Bar chart with D3.js

0 stars0🌍 Public
Kkaruppuraja
Last edited Mar 9, 2021
Created on Mar 9, 2021

This bar chart visualizes the popularity of programming languages from Stack Overflow's 2019 survey, with each bar labeled by percentage. Using D3.js v5, the SVG chart includes axes, gridlines, and a hover interaction: hovering a bar dims other values and displays the percentage difference relative to the selected bar via dynamically added text labels and a horizontal guide line. The code uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, `d3.axisBottom`, and `transition` for animation.

AI-generated description