Create a graphical pop-up in atom plugin/package

Hey guys! I’m currently trying to build an atom plugin that reads in selected text in a yaml file and will give back a graphical representation of what it reads in the text. The text wil contain x-y pairs which I in turn want to plot graphically. I can’t figure out how to create a pop-up in which I will be able to draw the plot. I know it should be possible though, because other packages like color-picker for example do it (even interactive, something I don’t need). I’m very new to package building for Atom so a little help would be extremely appreciated, thanks!

Your reference to yaml frontmatter and plotting makes me think of markdown-preview-enhanced as an example to work from.