tips and pointer interactions

hello and thanks for your work on plot.js! i’m trying to recreate this minimal example:

using plot.js 0.6.9 on a plain web page, but my interactions don’t fire:

https://wilderness.ordvac.com/test/tips/

does anyone have this working?

Instead of

document.getElementById('graph1').innerHTML = Plot.plot(options).outerHTML 

you need to say

document.getElementById('graph1').append(Plot.plot(options)) 

When you serialize to outerHTML you lose all interaction.

how embarrassing. thank you so much mike.

1 Like