Extending Observable Plot with D3 in Observable Framework

Hello,

I’m working with Observable Plot (not in the notebook, but within the Observable Framework) and want to create complex plots. This includes e.g. highlighting shapes and using a split legend for charts.

However, I’ve encountered limitations with Observable Plot, so I’ve switched to D3. But is rather cumbersome to produce simple charts and I’m interested in additions.

  1. Is it possible to add charts/shapes to the SVG output from e.g. Plot.lineY using D3?
  2. If yes, can I access the scaling functions (like the x/y scales) used within Plot.lineY to further extend the plot with D3?

Thanks in advance for your help!

Please move this topic to our github discussion boards, thank you!
See 📣 Support for Plot, D3 and Framework has moved to GitHub - #3.

I’ll answer there (the short answer is “yes”, you can create custom marks).