Skip to main content
100%

first-Vega-Lite-API-Template

✓ Published0🌍 Public
AAudioDen
Last edited May 12, 2021
Created on May 12, 2021

This example renders a scatter plot of automobile performance data from the UCI Auto MPG dataset, showing miles per gallon against horsepower. Each circle is colored by country of origin and sized according to vehicle weight, with tooltips displaying model names. The visualization is built using the vegalite-api, which composes Vega-Lite specifications programmatically in JavaScript, then renders them through Vega with an SVG view. Data loading uses `d3.csv` from D3 v5, while vega-tooltip provides interactive hover details.

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