Vega-Lite API Template
This visualization displays automobile data from the auto-mpg CSV file, plotting engine displacement against horsepower. Each point represents a vehicle, colored by its country of origin, with hover tooltips revealing the model name. The example demonstrates the vega-lite-api, which builds Vega-Lite specifications through a fluent JavaScript interface. It uses d3.csv for data loading, Vega-Lite's markPoint encoding, and integrates vega-tooltip for interactive labels. The visualization automatically resizes to fit the browser window, with custom axis styling and dark-themed labels.