Vega-Lite API Template
This example demonstrates a scatter plot of automobile data, showing the relationship between engine displacement and horsepower, with tooltips revealing the car model name. The visualization is built programmatically using the Vega-Lite API, which constructs a Vega-Lite specification through a fluent JavaScript interface. Data is loaded from a CSV file using d3’s `csv` function, and the resulting chart is rendered as an SVG via the `v.render()` method, with custom axis and label styling applied through a configuration object.