# Observable Plot: How to change the triggering method of the prompt box to a mouse touch at a certain point, instead of automatically adsorbing to the nearest data point?

**URL:** <https://talk.observablehq.com/t/observable-plot-how-to-change-the-triggering-method-of-the-prompt-box-to-a-mouse-touch-at-a-certain-point-instead-of-automatically-adsorbing-to-the-nearest-data-point/8413>\
**Category:** Help\
**Created:** [October 24, 2023, 8:19am UTC](https://talk.observablehq.com/t/observable-plot-how-to-change-the-triggering-method-of-the-prompt-box-to-a-mouse-touch-at-a-certain-point-instead-of-automatically-adsorbing-to-the-nearest-data-point/8413 "2023-10-24T08:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moon](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/moon/32/8216_2.png) [@moon](https://talk.observablehq.com/u/moon)\
**Post date:** [October 24, 2023, 8:19am UTC](https://talk.observablehq.com/t/observable-plot-how-to-change-the-triggering-method-of-the-prompt-box-to-a-mouse-touch-at-a-certain-point-instead-of-automatically-adsorbing-to-the-nearest-data-point/8413/1 "2023-10-24T08:19:23Z")

</div>

Hi,I drew a scatter plot using plot. js and added a prompt box function, but I found that the trigger method for the prompt box is to automatically adsorb to the nearest point.

Now I want to change it to mouse touch a certain point and display a prompt box. What should I do?

Thank you for providing assistance in advance.

```auto
 Plot.dot(data, {clip: true,
          x: "vae_x",
          y: "vae_y",
          log2R: "log2R",
          cell: "cell",
          lib: "lib",
          cell_designed: "cell_designed",
          index: "index",
          source: "source",
          source_type: "source_type",
          fill: this.colored,
          fillOpacity: 0.5,
          r: 3,
          channels: {
            x: "vae_x",
            y: "vae_y",
            log2R: "log2R",
            cell: "cell",
            source: "source",
            source_type: "source_type",
            lib: "lib",
            cell_designed: "cell_designed",
            index: "index",
          },
          tip: { lineHeight: 1.3 },
        }),

```

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [October 24, 2023, 7:50pm UTC](https://talk.observablehq.com/t/observable-plot-how-to-change-the-triggering-method-of-the-prompt-box-to-a-mouse-touch-at-a-certain-point-instead-of-automatically-adsorbing-to-the-nearest-data-point/8413/2 "2023-10-24T19:50:28Z")

</div>

You can set the radius within which the tip will respond to interactions via the `maxRadius` option:

```js
tip: { lineHeight: 1.3, maxRadius: 5 },

```

See [Pointer transform | Observable Plot](https://observablehq.github.io/plot/interactions/pointer#pointer-options) for details.

---

<div class="post-metadata">

**Author:** ![moon](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/moon/32/8216_2.png) [@moon](https://talk.observablehq.com/u/moon)\
**Post date:** [October 25, 2023, 1:31am UTC](https://talk.observablehq.com/t/observable-plot-how-to-change-the-triggering-method-of-the-prompt-box-to-a-mouse-touch-at-a-certain-point-instead-of-automatically-adsorbing-to-the-nearest-data-point/8413/3 "2023-10-25T01:31:39Z")

</div>

Thanks for your help!
