Fork of Vega-Lite API Template 2
✓ Published0🌍 Public
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 descriptionA visualization constructed using the vega-lite-api.
MIT Licensed