Giter Site home page Giter Site logo

Graph in published workspace about foam HOT 6 OPEN

foambubble avatar foambubble commented on May 19, 2024 4
Graph in published workspace

from foam.

Comments (6)

mryap avatar mryap commented on May 19, 2024

Can I ask how do you go about generating this Referred in title at your stacked page?
image

Thanks

from foam.

mathieudutour avatar mathieudutour commented on May 19, 2024

Using https://github.com/mathieudutour/gatsby-digital-garden/tree/master/packages/gatsby-transformer-markdown-references

from foam.

nixsee avatar nixsee commented on May 19, 2024

I love this - its very similar to something I made 4 years ago to use with a wordpress blog that I never really followed through with. I used d3js' force directed graphs, which also allowed for splicing in a variety of other d3js snippets for pan, zoom, search, node colors and sizes, center on selected node/page, show nodes that are x # of links away, filter based on tags & categories, etc... So, it seems to me that leaning on d3js (which appears to be compatible with gatsby vs graphql, react and other stuff) would be a good thing to consider. Or perhaps its all perfectly possible to do with other tools that you're more familiar with.

I'm not really a capable coder (my very kludgey tool took me MONTHS to splice together), so I probably can't really be all that useful for building/integrating any of this into what you've started. But a gatsby-based Foam is ultimately what I'd like to be using this all for, so I'd be delighted to share/brainstorm with you if you're keen to do so! Either way, I'll try to dig up some stuff from my notes and backups to share for inspiration.

from foam.

mathieudutour avatar mathieudutour commented on May 19, 2024

I used d3js' force directed graphs

That's what I've been using as well https://github.com/mathieudutour/gatsby-digital-garden/blob/master/packages/gatsby-theme-garden/src/components/graph-visualisation.js! But my implementation is probably terrible, I don't have a lot experience with D3.

There are a few more details about graphs in Foam here: https://github.com/foambubble/call-for-visualization

from foam.

nixsee avatar nixsee commented on May 19, 2024

No kidding. Thanks for pointing me to your d3 code! Given that you've done what is (to me) the hard work of getting d3 to work with Gatsby, I'll see if I can somehow splice in some of the stuff that I had previously made. I've got nothing but time these days, so it would be wonderful if my many months of blind trial and error could be put to good use finally! I'll share something here/with you if/when I have some success.

Is getting your code up and running really as easy as the 1, 2, 3 in your instructions?

from foam.

nixsee avatar nixsee commented on May 19, 2024

So I was able to get this set up and test out. Very nice! But it is extremely slow when there are lots of notes (I imported about 500) - the graph inches open and closed over the course of 10+ seconds, and zooming and panning is basically not possible. If I should be commenting on the performance at your digital garden repo instead of here, please let me know. But the same problem happens with the current Markdown Links extension as well.

Obsidian works flawlessly with the same dataset - they use a combination of d3js and Pixi.js so perhaps pixi is doing something that handles the size better. Also, I know that d3 has the capability to use svg and canvas - canvas being far faster for larger datasets, with some other tradeoffs.

So, as far as Foam is concerned, it seems to me that whether its the local or published workspace, size/performance needs to be optimized before anything else (filters, colors, focus, node size, etc...) is discussed.

from foam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.