Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
AAshutosh5333
Last edited Mar 3, 2023
Created on Mar 3, 2023

This example uses the Vega-Lite API to render a scatterplot of automobile data from a CSV file, plotting engine displacement against horsepower with tooltips showing car names. The visualization relies on `vl.markPoint`, `vl.x().fieldQ()`, and `vl.y().fieldQ()` to encode quantitative fields, while the `config.js` file customizes axis and label styling for readability. Data is loaded asynchronously via `d3.csv`, and the chart is embedded using Vega, Vega-Lite, and Vega-Tooltip, with the output fitted to the full viewport.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes