Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template 2

Public visualization

Viewing a saved revision (read-only)

7e40123464244b369cdecabddea77465

Fork of Vega-Lite API Template 2

0 stars0🌍 Public
Kkrishanub03@gmail.com
Last edited Jun 2, 2024
Created on Jun 2, 2024

This example plots vehicle acceleration against horsepower from the auto-mpg dataset, using Vega-Lite API to construct a scatterplot and D3 to load the CSV data. Each point represents a car, with tooltips revealing the model name on hover. The visualization applies custom axis styling and dark text colors from a config file, and renders responsively to fill the browser window. It demonstrates the Vega-Lite API’s declarative mark specification and encoding methods, such as `vl.markPoint()`, `vl.x().fieldQ()`, and `vl.tooltip().fieldN()`, with Vega tooltips enabled.

AI-generated description

A visualization constructed using the vega-lite-api.