🌍 Public
Viewing a saved revision (read-only)
fbe8036bf47946d68bfc7f84dfe14a5c
Fork of Vega-Lite API Template
This example renders a filled line chart without strokes, mapping engine displacement on the x-axis and horsepower on the y-axis from the classic auto-mpg dataset. It uses the Vega-Lite API to construct the chart via its mark and encoding methods, with tooltips bound to each point’s vehicle name. The code loads CSV data through d3.csv, applies a custom configuration for axes and label styling, and displays the result as a full-window SVG using Vega-Lite’s renderer and view options.
AI-generated descriptionA visualization constructed using the vega-lite-api.