Skip to main content
Public

Share visualization

Loading preview…

Bar chart with D3.js

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Bar chart with D3.js

0
Ssuchitra2602
Last edited Jul 7, 2022
Created on Jul 7, 2022

This bar chart visualizes survey data on the most loved programming languages, with each bar’s height representing the percentage of positive responses. The chart is rendered as an SVG using D3.js v5 within a React framework. Hovering over a bar triggers a transition that highlights it and displays a dashed reference line, while text labels show percentage divergences between the hovered bar and all others using `d3.transition` and `d3.select`. Axes are generated via `d3.axisBottom` and `d3.axisLeft`, with a linear scale for values and a band scale for categories.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed