Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

1de789839e604b3b9f8eadc32b35183b

Vega-Lite API Template

0 stars0🌍 Public
Eestebanba
Last edited Mar 24, 2023
Created on Mar 24, 2023

This example demonstrates a scatter plot of automobile data, showing the relationship between engine displacement and horsepower, with tooltips revealing the car model name. The visualization is built programmatically using the Vega-Lite API, which constructs a Vega-Lite specification through a fluent JavaScript interface. Data is loaded from a CSV file using d3’s `csv` function, and the resulting chart is rendered as an SVG via the `v.render()` method, with custom axis and label styling applied through a configuration object.

AI-generated description

A visualization constructed using the vega-lite-api.