Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template - Part 1

Public visualization

Vega-Lite API Template - Part 1

0 stars0🌍 Public
TTom-S82
Last edited Jul 25, 2020
Created on Jul 24, 2020

This example shows car specifications as a scatter plot, with miles per gallon on the x-axis, horsepower on the y-axis, origin as color, and fuel efficiency also encoded by point size. It uses the Vega-Lite API to construct the visualization programmatically, registering Vega and Vega-Lite v5/v4 with d3.csv for data loading from the Auto-MPG dataset. The chart is rendered as SVG, with tooltips enabled via the Vega Tooltip handler and a custom dark color scheme for axes and labels.

AI-generated description

A visualization constructed using the vega-lite-api.


Tutorials:

Comments

Sign in to join the discussion.

MIT Licensed