Coder Social home page Coder Social logo

Comments (8)

baransu avatar baransu commented on May 22, 2024

From version 4.4.0 and above you have to specify entryNode property in your top level graph. It's name of your central node on global level. Does it resolve your issue?

from vizceral.

singerbj avatar singerbj commented on May 22, 2024

Kind of. I'm not getting stats for the nodes other than my entryNode now (I just get the region loading spinner). Is it not possible for all nodes to send and receive data to/from each other?

Also, can you point me at the documentation for entryNode so I can understand it better?

from vizceral.

singerbj avatar singerbj commented on May 22, 2024

Also why won't this work:
{ name: '1', renderer: 'global', maxVolume: 500, entryNode: '1', nodes: [{ name: '1' }, { name: '2' } ], connections: [{ source: '1', target: '2', metrics: { normal: 10, warning: 9, danger: 5 } }, { source: '2', target: '1', metrics: { normal: 10, warning: 9, danger: 5 } } ] }

from vizceral.

aSqrd-eSqrd avatar aSqrd-eSqrd commented on May 22, 2024

Your JSON format is dicey at best. You should take a look at the Data Format wiki.

You can get away with the JSON you have now if you change "global" to "region". But you are playing a dangerous game by not specifying a renderer for each node.

--- UPDATE ---
If you use the entryNode field you will get the spinning "region loading" donut graph(s) for any nodes other than the one supplied via entryNode or with the name "internet". Where "any nodes" are nodes with the renderer explicitly set to "region" or that are children of a renderer: "global" entity, but seriously you should give every node a renderer to make your life easy)regions contain no children.

It took me 8 minutes to run a test and @baransu just posted the same information in that time, while I was updating my comment. I did verify that by adding nodes to an empty renderer: "region" the "Region Loading" will go away on the next updateData call.

from vizceral.

baransu avatar baransu commented on May 22, 2024

Loading region is probably due to no nodes inside your region. I don't know right now how to handle this other than creating some nodes inside region.

I'm afraid there is no documentation about entryNode. It's just indicated which node is entry point and central node for your graph.

What messages are you getting in console regarding your data? What version are you using?
Your problem may be related to no renderer specified for every node in global graph.
Try looking here to understand how to use
vizceral.

from vizceral.

jrsquared avatar jrsquared commented on May 22, 2024

Yes, as @baransu said, the global graph has an assumption that nodes will have children nodes. There is currently no way around this, but should be trivial to add something to allow for this. I would be happy to look at a PR around this.

And yes, you have to specify an entryNode or have a node named 'INTERNET'. I updated the wiki to include this.

from vizceral.

baransu avatar baransu commented on May 22, 2024

@jrsquared actually INTERNET is assumed on region level not global. On global you have to specify it mandatory. Should we add it for global level graph too?

from vizceral.

jrsquared avatar jrsquared commented on May 22, 2024

Ah, you are correct. No, that's fine.

from vizceral.

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.