Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

75d528bb04394d6d998161e22258fed7

Vega-Lite API Template

0 stars0🌍 Public
Mmaxthamt
Last edited Mar 12, 2021
Created on Mar 12, 2021

This example demonstrates a scatter plot of automotive data, showing the relationship between engine displacement and horsepower for various car models, with tooltips revealing the car name for each point. Built with the Vega-Lite API, the visualization renders directly to SVG using the `vl` interface to define marks and encodings. The code registers Vega and Vega-Lite, loads data from a CSV file via `d3.csv`, and applies custom styling through a `config` object to improve readability.

AI-generated description

A visualization constructed using the vega-lite-api.