Vega-Lite API Template
This example visualizes automobile data from a CSV file, plotting engine displacement against horsepower with point color encoding model year and point size encoding weight. Tooltips expose the vehicle name. It uses the Vega-Lite API to construct the specification, registering Vega, Vega-Lite, and Vega-Tooltip within a D3-based application, rendering to SVG. Data is loaded asynchronously via d3.csv, and the visualization is sized to fit the browser window.