Skip to main content
100%

Vega-Lite API Template

✓ Published1🌍 Public
MMauricio García Benítez
Last edited Dec 28, 2020
Created on Dec 28, 2020

This example uses the Vega-Lite API to render a scatterplot of automotive data, showing the relationship between engine displacement and horsepower with color-encoded cylinders and tooltips for car names. It fetches data from a CSV file via d3.csv, then builds the visualization using the vl API's markCircle and encode methods, configuring axes, styles, and layout through a custom config object. The view is rendered as SVG and fitted to the window size, with Vega and Vega-Lite registered in the API.

AI-generated description

A visualization constructed using the vega-lite-api

MIT Licensed

Similar vizzes