Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes