# tips and pointer interactions

**URL:** <https://talk.observablehq.com/t/tips-and-pointer-interactions/8126>\
**Category:** Help\
**Created:** [July 25, 2023, 9:18pm UTC](https://talk.observablehq.com/t/tips-and-pointer-interactions/8126 "2023-07-25T21:18:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jxe](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jxe/32/7911_2.png) [@jxe](https://talk.observablehq.com/u/jxe)\
**Post date:** [July 25, 2023, 9:18pm UTC](https://talk.observablehq.com/t/tips-and-pointer-interactions/8126/1 "2023-07-25T21:18:02Z")

</div>

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

> **[Plot: State centroids](https://observablehq.com/@observablehq/plot-state-centroids)**
>
> Mark the centroid of each U.S. state with a dot and an interactive tip.

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

[https://wilderness.ordvac.com/test/tips/](https://wilderness.ordvac.com/test/tips/)

does anyone have this working?

---

<div class="post-metadata">

**Author:** ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)\
**Post date:** [July 25, 2023, 10:35pm UTC](https://talk.observablehq.com/t/tips-and-pointer-interactions/8126/2 "2023-07-25T22:35:49Z")

</div>

Instead of

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

```

you need to say

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

```

When you serialize to outerHTML you lose all interaction.

---

<div class="post-metadata">

**Author:** ![jxe](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jxe/32/7911_2.png) [@jxe](https://talk.observablehq.com/u/jxe)\
**Post date:** [July 25, 2023, 10:49pm UTC](https://talk.observablehq.com/t/tips-and-pointer-interactions/8126/3 "2023-07-25T22:49:26Z")

</div>

how embarrassing. thank you so much mike.
