[Vega-Lite] 3.2 Line Chart with .csv
✓ Published0🌍 Public
This example shows a line chart of monthly S&P 500 prices from 2000 to 2010, with date on the x-axis and price on the y-axis. The visualization loads a CSV file, `sp500.csv`, and renders it using Vega-Lite’s `mark` type. The chart is embedded in an HTML page via `vegaEmbed`, which uses the `vega` and `vega-lite` libraries to parse the specification in `line.vl.json`. The encoding maps the temporal `date` field and quantitative `price` field to the axes, producing a simple trend line.
AI-generated descriptionMIT Licensed