Tooltip with Multi-Series Line Chart in Vega-Lite API

I am trying to recreate this example in Vega-Lite API in an Observable notebook. I am able to recreate the ruler with the multiple line series from another example in Observable. But I am having trouble adding tooltips, I would like to add the symbol ticker and the price of the stock of each stock. Instead it looks like this in my Observable notebook.

See: https://observablehq.com/d/cab88178054b7671

2 Likes

Thank you this is perfect!

This tricky pattern may also be of interest: