Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
AAki78
Last edited Jun 5, 2021
Created on Jun 5, 2021

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.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes