Skip to main content
100%

Fork of Fork of Vega-Lite API Template

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

This example visualizes the relationship between engine displacement and horsepower using a scatter plot of automotive data. Each point represents a vehicle, with tooltips revealing the car’s name on hover. The visualization is built with the Vega-Lite API, which composes specifications and renders them via Vega and Vega-Lite libraries. Data is loaded asynchronously from a CSV file using d3.csv, while appearance is customized through a config object that adjusts axis styles, font sizes, and colors. The chart fills the browser window and uses semi-transparent points to show overlapping data density.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes