Replies: 2 comments 2 replies
-
npm install would install the libraries on the "server-side"—whereas, I guess, you probably want them on the "client-side" (to run them interactively in the browser). You could try something like this:
the "ogma" npm module I saw seems unrelated to graph visualization, so I have not been able to go much further, but happy to help if you can share more details. |
Beta Was this translation helpful? Give feedback.
-
Currently, you’d need to download the source files into your project and import them as a local ES module, e.g., import * as ogma from "./ogma.js"; You can also import from a URL if it’s hosted somewhere else (but this isn’t recommended because you’ll have an external dependency on this server in your built site, which isn’t great for performance or security): import * as ogma from "https://example.com/ogma.js"; We’re planning on adding support for importing from import * as ogma from "ogma"; Please upvote #360 if you’re interested in this feature! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I specialize in all things graphs and graph visualization. Use quite a bit of Ogma (by Linkurious) and yFiles (by yWorks).
I have tried to integrate this type of dataviz into the framework but all attempts failed. Is there more to it than
npm install
, creating a component anddisplay()
? The error is simplyunable to load the module
. Tried all module types.Beta Was this translation helpful? Give feedback.
All reactions