Vega-Lite API Template
✓ Published1🌍 Public
This example uses the Vega-Lite API to render a scatterplot of automotive data, showing the relationship between engine displacement and horsepower with color-encoded cylinders and tooltips for car names. It fetches data from a CSV file via d3.csv, then builds the visualization using the vl API's markCircle and encode methods, configuring axes, styles, and layout through a custom config object. The view is rendered as SVG and fitted to the window size, with Vega and Vega-Lite registered in the API.
AI-generated descriptionA visualization constructed using the vega-lite-api
MIT Licensed