Skip to main content
Public

Share visualization

Loading preview…

Line Chart with HTML

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

Line Chart with HTML

1
BBismark Kofi Owusu Sarfo
Last edited Sep 25, 2025
Created on Sep 25, 2025

This line chart shows BMW sales by region from 2018 to 2022, comparing Europe, USA, Asia, and Other Regions with color-coded lines and data point circles. Built with D3.js v7, it uses d3.line with curveMonotoneX, d3.scaleLinear for both axes, and d3.axisBottom/axisLeft with grid lines. A legend identifies each region, while simulated sales data is rendered as an SVG with responsive dimensions.

AI-generated description

BMW Regional Sales Line Chart

This visualization displays BMW sales across different regions from 2018 to 2022 using D3.js to create a multiple line graph.

How to View

Simply open index.html in any modern web browser to see the visualization.

Data Sources

Sales data is simulated for demonstration purposes:

  • Europe: Main market for BMW
  • USA: Significant market in North America
  • Asia: Rapidly growing market
  • Other Regions: Includes rest of the world

Implementation Details

  • Uses D3.js v7 for data visualization
  • Responsive line chart with grid lines
  • Color-coded regions with legend
  • Data points highlighted with circles
  • Axes with appropriate labels and formatting

Comments

Sign in to join the discussion.

MIT Licensed