🌍 Public
Fork of [Vega-Lite] 3.5 Selection
Two stacked area charts show the S&P 500 price over time, sourced from a CSV file. The upper chart’s x-axis scale is linked to a brush selection on the lower, smaller chart via a Vega-Lite parameter named `brush`, which uses an interval selection over the x-encoding. Dragging across the lower chart updates the upper chart’s displayed date range. The visualization is built with Vega-Lite 5, embedded by vega-embed, and renders area marks for both views.
AI-generated descriptionMIT Licensed
![[Vega-Lite] 3.5 Selection](/viz/6a749fb41d36451e85ccec8d6db06aaf/social-image.png?v=c83c7eb50b3444b39ea4c55eeeeb24e6)
![[Vega-Lite] 3.2 Line Chart](/viz/9d29d7728d8344d5abc5e2039f22d5c3/social-image.png?v=eb83357be732420688cbd7151e63f6fe)
![Fork of [Vega-Lite] 3.3 Area Chart](/viz/f7e61225ce9c459286132f45f40414b1/social-image.png?v=35a61b7661844335a0f182caa74cceed)
![[Vega-Lite] 3.3 Area Chart](/viz/18d6f40719644b3797144983fdd56380/social-image.png?v=d0d6f4b85d4e4ea8ba847cfca92f38c5)
![Fork of [Vega-Lite] 3.2 Line Chart](/viz/2a76d18e2cf2431e81d1623d9ed45aad/social-image.png?v=82ceec305e704148bdaa30754a694544)
![[Vega-Lite] 3.4 Composition](/viz/512913c2a5d542579b19c85e325d525e/social-image.png?v=9d54205131d142afa426d01c5836a091)
![[Vega-Lite] 3.2 Line Chart](/viz/9e059a347e544f90b43daaaf5aa6cee3/social-image.png?v=053839e3d3114a1b90422063fb23bff5)
![[Vega-Lite] 3.3 Area Chart](/viz/c831224d68c945bd9ff28242ce589485/social-image.png?v=fbb868dae9844f0d8710ffc7ef1ac5dc)
Comments
Sign in to join the discussion.