-
Reading the source, it seems that the output of plot is an HTML tree and the user is left to render it on their own. Is that correct? The docs show a screenshot of a nice modal window appearing next to a script file. Is this meant to be loaded in the browser and the user is responsible for creating a child window and injecting the generated HTML? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@mhkeller Yes, you can generate a view in Electron or the browser using the When invoking that method, you can provide a "viewer" (as documented in https://github.com/stdlib-js/stdlib/tree/c39cc7222bf86a5217a4fc5333b007f90f1709cd/lib/node_modules/%40stdlib/plot/ctor#plotprototypeviewer). You can also check out the examples in the |
Beta Was this translation helpful? Give feedback.
@mhkeller Yes, you can generate a view in Electron or the browser using the
view
API (see https://github.com/stdlib-js/stdlib/tree/c39cc7222bf86a5217a4fc5333b007f90f1709cd/lib/node_modules/%40stdlib/plot/ctor#plotprototypeview-viewer-).When invoking that method, you can provide a "viewer" (as documented in https://github.com/stdlib-js/stdlib/tree/c39cc7222bf86a5217a4fc5333b007f90f1709cd/lib/node_modules/%40stdlib/plot/ctor#plotprototypeviewer).
You can also check out the examples in the
examples
folder which, IIRC, generate such views (e.g., https://github.com/stdlib-js/stdlib/blob/c39cc7222bf86a5217a4fc5333b007f90f1709cd/lib/node_modules/%40stdlib/plot/ctor/examples/scatterrug).