Skip to main content
100%

Fork of Vega-Lite API Template 2

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

MIT Licensed

Similar vizzes