Marks & Channels
This visualization shows the relationship between engine displacement, miles per gallon, horsepower, and country of origin for a sample of automobiles. Using Vega-Lite’s API, it renders a scatterplot where point positions encode displacement and MPG, color encodes origin, and size encodes horsepower, while tooltips reveal additional details. The data is loaded asynchronously via D3’s CSV parser, and the chart is configured with custom axis and label styling for readability.