Skip to main content
100%

[Vega-Lite] 3.2 Line Chart all in HTML

✓ Published0🌍 Public
DDiego Rojo
Last edited Mar 16, 2022
Created on Mar 16, 2022

This example displays a simple line chart of S&P 500 stock prices over time, using a temporal x-axis and a quantitative y-axis. The visualization loads CSV data from a GitHub gist and renders the line mark directly in the browser. It is built entirely within a single HTML file using the Vega-Lite specification, then embedded into a `<div>` via the `vegaEmbed` function, with Vega and Vega-Lite loaded from a CDN.

AI-generated description
MIT Licensed

Similar vizzes