Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Fork of Vega-Lite API Template

0 stars0๐ŸŒ Public
MMilena Belianovich Holtman
Last edited Nov 29, 2022
Created on Nov 29, 2022

This example visualizes vehicle fuel efficiency using an interactive scatter plot of the Auto MPG dataset, where each point represents a car with its miles per gallon on the x-axis, horsepower on the y-axis, color encoding country of origin, and point size indicating weight. The visualization is built using the Vega-Lite API, which registers with Vega and Vega-Lite to render the chart as SVG, while D3.js loads the CSV data asynchronously. The code configures axis styles, tooltips through the Vega Tooltip handler, and automatically sizes the chart to fill the window.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

Comments

Sign in to join the discussion.

MIT Licensed