Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Vega-Lite API Template

Public visualization

Fork of Fork of Vega-Lite API Template

0 stars0🌍 Public
NNita
Last edited Aug 5, 2025
Created on Aug 5, 2025

This scatter plot visualizes the relationship between automobile characteristics, with miles per gallon on the x-axis, horsepower on the y-axis, origin indicated by color, and weight mapped to point size. The chart uses tooltips to display vehicle names and detailed specifications. The visualization is built using the Vega-Lite API in conjunction with D3.js for data loading and Vega Tooltip for interactive hover effects. Data comes from the UCI Machine Learning Repository's auto-mpg dataset, converted from CSV format. The chart adapts to window resizing via a ResizeObserver and features customized styling for improved readability.

AI-generated description

Automobile Data Visualization

This project visualizes the relationship between automobile characteristics using Vega-Lite. The scatter plot shows:

  • X-axis: Miles per gallon (MPG)
  • Y-axis: Horsepower
  • Color: Origin of the vehicle
  • Size: Weight of the vehicle
  • Tooltip: Vehicle name and additional details

Features

  • Responsive design that adapts to window resizing
  • Interactive tooltips with vehicle details
  • Clean, modern styling with improved readability
  • Optimized data loading and rendering

Technologies

Data Source

The dataset is sourced from the UCI Machine Learning Repository and contains specifications for various automobiles.

Comments

Sign in to join the discussion.

MIT Licensed