🏠 back to Observable

How to insert interactive annotations in Plot?

Hello folks. I want to build something like this with Plot:

I do love interactive dot annotations at the bottom

This is what I’ve done so far with Plot (in my case, data are grouped on a weekly basis, thank you Plot, d3.time, d3.array & friends :star_struck:)

I’m wondering if there is a way to add such interactive dot annotations also to a Plot-based visualization.


The only interaction is see is marks:[ title: ... ] Unless I just missed other interactive options.

I think using D3 to modify the `<svg .plot> might be a bit hackery but would make adding the dots easier.

1 Like

Hi Brett. Oh, I see. :confused: In my case, I need to add extra elements (ie. interactive circles) to a Plot.

Just saw this from @analyzer2004, which has very similar things that you desired.

1 Like

Thank you!