Vega-Lite API Scatter Plot
This scatter plot visualizes the relationship between vehicle weight and horsepower for a dataset of automobiles, with points colored by country of origin. The visualization is built using the Vega-Lite API, which is registered with Vega and Vega-Lite to render SVG graphics. Data is loaded via D3’s `csv` function from a remote Gist, and tooltips are handled by Vega-Tooltip to display car names on hover. The chart’s appearance is customized through a configuration object that styles axis labels and titles.