Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
HHernanls
Last edited Feb 17, 2020
Created on Feb 17, 2020

This example demonstrates a scatter plot of automobile acceleration against horsepower, with tooltips revealing car names. Built using the Vega-Lite API, the visualization dynamically sizes to the browser window and applies custom styling for dark axis labels and green tick marks. Data is loaded from a CSV file via d3.csv, and the plot is rendered through Vega’s SVG renderer with tooltip support from vega-tooltip. The code leverages vl.markPoint, vl.x(), and vl.y() to define the encoding, showcasing a template for rapid declarative visualization development.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes