TC of Vega-Lite API Template
This example visualizes the relationship between fuel efficiency (mpg), horsepower, weight, and country of origin across automotive models. It renders a scatter plot using Vega-Lite API, where points are scaled by weight and colored by origin, with a tooltip displaying vehicle names. The code loads data from a CSV via D3’s `csv` function, and uses Vega-Lite API’s `vl.markCircle` and encoding methods for x, y, color, and size. Custom configuration adjusts axis labels and fonts for readability against a dark theme.