Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes