Fork of Fork of Vega-Lite API Template
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.