Code Monkey home page Code Monkey logo

Comments (7)

fkling avatar fkling commented on July 29, 2024

Did you download and include jsnetworkx.js?

<script src="path/to/jsnetworkx.js"></script>

from jsnetworkx.

Brian1966 avatar Brian1966 commented on July 29, 2024

I think I downloaded the correct file jsnetworkx.js I also have d3.js in the same directory . d3 seems to resolve it's references.When I open the jsnetworkx.js and hover over g.jsnx the IDE say that the reference is unresolved.

In the Chrome console there are no errors saying that jsnetworkx.js has not been found. I've attached some screen shots so I guess I've made a slip up some where!

jsnetworkx
jsnetworkx2
jsnetworkx3

from jsnetworkx.

fkling avatar fkling commented on July 29, 2024

In the Chrome console there are no errors saying that jsnetworkx.js has not been found.

Does this mean you actually have no problem running the code in the browser and the problem is only in the IDE? Dynamically typed languages can be difficult for IDEs to handle and I cannot really help you there.

from jsnetworkx.

Brian1966 avatar Brian1966 commented on July 29, 2024

Hello
In the Chrome console (for windows 7) I get the following result. It does not return ["1", "3", "5", "7", "11"]. Please refer to my screen shot.

jsnetworkx

from jsnetworkx.

fkling avatar fkling commented on July 29, 2024

The undefined value is what console.log always returns. At the bottom of the console, at the right hand side you see multiple buttons: All, Errors, Warnings, Logs, Debug. You have to select All or Logs to see the output of console.log.
This has nothing to do with JSNetworkX though.

from jsnetworkx.

Brian1966 avatar Brian1966 commented on July 29, 2024

Hello,

Problem seemed to be the IDE's ability to resolve the library. All seems to be working great library! Very quick to create and visualize graphs.

Regards
networkx

from jsnetworkx.

fkling avatar fkling commented on July 29, 2024

Yeah, as I said, IDEs can have troubles to resolve dynamic languages. Happy coding! :)

from jsnetworkx.

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.