Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars0🌍 Public
Llok noe
Last edited Nov 14, 2021
Created on Nov 14, 2021

This example demonstrates a scatter plot of automobile data from the UCI Machine Learning Repository, with each car’s origin encoded by color and weight by point size. The visualization is built using the Vega-Lite API, which abstracts the declarative Vega-Lite specification into a programmatic interface, and renders through Vega’s SVG engine. Data is loaded asynchronously via D3’s `csv` function, and a custom tooltip is attached using the Vega-Tooltip `Handler` class. The chart’s axes and labels are styled through a custom Vega-Lite configuration object.

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