Skip to main content
Public

Share visualization

Loading preview…

Bar Chart of BMW volume of sales with Hover

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 of BMW volume of sales with Hover

1
BBismark Kofi Owusu Sarfo
Last edited Oct 28, 2025
Created on Oct 28, 2025

This bar chart displays BMW sales volumes by region for 2022, using the `Sales_Volume` field from `data.csv`, aggregated via `d3.rollups`. Each bar is colored by its corresponding country, and hovering over a bar highlights it in black while dimming others, showing a tooltip with the exact sales figure. The visualization uses D3.js v7's SVG rendering, with scales created via `d3.scaleLinear` and `d3.scaleBand`, and interactive hover events implemented through D3's `.on('mouseover')` and `.on('mouseout')` handlers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed