🌍 Public
[Vega-Lite] 3.2 Line Chart
This visualization displays fluctuations in the S&P 500 stock index over time, with a line chart showing price changes along a temporal axis. The example uses Vega-Lite’s JSON specification format to declare the chart, which is rendered through the vega-embed library within a minimal HTML page. The chart encodes dates on the x-axis and quantitative price values on the y-axis, while the mark type is set to "area" to fill the region beneath the line. The underlying data is fetched from a remote CSV hosted in a GitHub gist.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed
![[Vega-Lite] 3.2 Line Chart](/viz/56c09f3cf1c14b61bde137530cc99256/social-image.png?v=e326c9e1281f4b76b4a9e7ef897c3890)
![[Vega-Lite] 3.2 Line Chart](/viz/9e059a347e544f90b43daaaf5aa6cee3/social-image.png?v=053839e3d3114a1b90422063fb23bff5)
![[Vega-Lite] 3.2 Line Chart](/viz/5d66fff1d0cb472291ec94af10c69117/social-image.png?v=42b5e437792843c48070da7bd395922d)
![[Vega-Lite] 3.2 Line Chart](/viz/e58780a7ae934db39105008748555d89/social-image.png?v=4ec95a144ace463aa0bdc9559984951c)
![[Vega-Lite] 3.2 Line Chart all in HTML](/viz/3f6f8932c3ba42939aa70bc07b5da1ee/social-image.png?v=7ed43c3ad912485490938ca19f97f0f0)
![[Vega-Lite] 3.2 Line Chart](/viz/9d29d7728d8344d5abc5e2039f22d5c3/social-image.png?v=eb83357be732420688cbd7151e63f6fe)
![[Vega-Lite] 3.2 Line Chart with .csv](/viz/1f0daed0198f41e59f8067b877166cdf/social-image.png?v=dac08f5f2db94b909176af15f3f214fc)
![[Vega-Lite] 3.3 Area Chart](/viz/18d6f40719644b3797144983fdd56380/social-image.png?v=d0d6f4b85d4e4ea8ba847cfca92f38c5)
Comments
Sign in to join the discussion.