Circle Bubble of BMW sales
✓ Published1🌍 Public
BBismark Kofi Owusu Sarfo
Last edited Nov 14, 2025
Created on Nov 14, 2025
An animated bubble chart displays BMW sales volumes from 2010 to 2024 for eleven car models across six world regions. Yearly transitions show sales evolving over time, with color-coded bubbles representing distinct models. Users can filter by country and model via checkboxes, pause or reset the animation, and hover for tooltips. Built with D3.js v7, it uses `d3.rollups` for data aggregation, `d3.csv` for loading CSV data, and SVG transitions driven by a JavaScript interval to animate between years on a scatter plot.
AI-generated descriptionBMW Sales Animation
An interactive D3.js visualization showing BMW sales volumes across different regions, models, and years with animated bubble charts.
Features
- Animated Bubble Charts: Watch sales data evolve year by year
- Country Filtering: Toggle countries on/off via checkboxes
- Interactive Tooltips: Hover over bubbles to see detailed sales information
- Play/Pause Controls: Control the animation at your own pace
- Color-Coded Models: Each BMW model has a distinct color
- Responsive Layout: Grid lines and axis labels for easy data reading
Files
index.html- Main HTML structurescript.js- D3.js visualization and animation logicdataProcessor.js- Data processing and color mappingsdata.csv- BMW sales dataset
Data Structure
The dataset includes:
- Models: 3 Series, 5 Series, 7 Series, X1, X3, X5, X6, M3, M5, i3, i8
- Regions: North America, South America, Europe, Asia, Africa, Middle East
- Years: 2010-2024
- Metrics: Sales Volume, Price, Engine Size, Fuel Type, Transmission
How to Use
- Open
index.htmlin a web browser - The animation starts automatically
- Use the checkboxes to filter by country
- Click Play/Pause to control the animation
- Hover over bubbles to see detailed information
Technologies
- D3.js v7
- HTML5
- CSS3
- JavaScript (ES6+)
MIT Licensed