Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published1🌍 Public
DDoãn Phụng
Last edited Jun 28, 2022
Created on Jun 28, 2022

This scatterplot visualizes the relationship between engine displacement and horsepower for a car dataset loaded from a CSV file. The example uses the Vega-Lite API, a JavaScript wrapper for Vega-Lite, to declaratively define the chart, with `vl.markPoint` for the points and `vl.x()` and `vl.y()` encoding quantitative fields. Rendering occurs through Vega, with the chart sized to the window and tooltips enabled via the Vega Tooltip handler. The code also imports custom axis and label styling from a separate config module.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes