Fork of Vega-Lite API Template
This example visualizes automobile attributes by plotting engine displacement against horsepower, with each point representing a vehicle and tooltips revealing the car’s name. Built using the Vega-Lite API, it registers Vega and Vega-Lite, fetches data from a CSV via d3’s `csv` method, and renders an SVG chart. The visualization uses custom axis and label styling from a configuration object, with marks as semi-transparent points sized at 90 pixels. It leverages `vl.markPoint`, `vl.x().fieldQ`, and `vl.y().fieldQ` for quantitative encodings, and fits the chart to the window dimensions.