Coder Social home page Coder Social logo

react-graph-network's People

Contributors

alyonashadrina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-graph-network's Issues

Several graph

Hello, i want to ask about how i can to display several graph? When i display one graph everything work correct, but when i display tow graph and more it displaying one graph. I think it connected with id graph , how i can resolve this problem?

<Graph data={dataFromDB} LineComponent={LineGraph} NodeComponent={Node} style={{height: '100%', width: '100%'}} nodeDistance={getNodeDistance()} zoomDepth={3} hoverOpacity={0.3} enableDrag={false} pullIn={false} />

Resizing Problem

After feeding in data, the result is in the form of an svg file which cannot be resized. So even if I increase/decrease the outer box, the graph doesnt resize. Doesnt even change its position. It overflows and becomes invisible after decreasing the outer div beyond a point. I tried using custom css also but its not working. I have given width and height both as 100% but still its not working. On inspecting I saw that the svg is taking 100% width and height but inside is overflowing out of the div. The svg file is buggy. Ideally all contents should be INSIDE the but here its not.

onClick event

Is there any way to add some kind of event listener on nodes?

Move node of the graph

Hello. I want to ask how i can to control move the graph. I mean i want the graph not went beyond the borders. I want to know coordinates the moving node. How can i do it? Thank you

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.