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
EEevikettu
Last edited Oct 27, 2022
Created on Oct 27, 2022

This example uses the Vega-Lite API with D3 to render a scatter plot of automobile data from the UCI Machine Learning Repository, displaying miles per gallon against horsepower. Each point is colored by country of origin and sized by vehicle weight, with tooltips revealing car names. The visualization employs the `vl` API to construct the mark and encodings, configures axis styling for readability, and uses `vl.scale` for non-zero-based axes. It renders to SVG using Vega-Lite's default renderer, with data fetched asynchronously from a Gist-hosted CSV.

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