How to anchor a popup to a position?

Hi,

I have a button on a tablet screen that pops up a graph when clicked on. The graph corresponds to some table values, and I want this graph to be covering the table when it appears. I can do this, however whenever I scroll / move the screen somewhere else, the graph follows.

Is there anyway that I can anchor the graph to stay in a fixed position? This is the script im using, it is not working:
system.perspective.openPopup(
id="pressureGraphPopup",
view="Furn/G/Views/tablet_PressureTempGraph",
title="Pressure & Temp Graph",
params={},
modal=False,
draggable=True,
resizable=True,
showCloseIcon=True,
position={"top": 170, "left": 65},
positioned=True
)

Instead of using a popup, use an embedded view (flex) and leverage the display prop to show/hide components. The embedded view would have both the table and popup view inside it.

You could also change the embedded view path to the popup's view on click, it really depends on your functionality, but a popup is not the solution for this since you need it anchored.

Okay thanks! I will use an embedded view instead and let you know how it goes.