cytoscape.js Questions
2
Solved
I want to lock the position of a node relative to its parent compound node, such that if I grab and drag the parent node, the child node moves with it, but the child is not individually grabbable. ...
Chantilly asked 20/8, 2015 at 23:23
4
I am new to Cytoscape.js. I've managed to create a network. I'd like to change mouse cursor to pointer when mouse is over a node. Based on what I read, I should use the following code:
style: cyto...
Yocum asked 23/10, 2013 at 3:2
2
Solved
Short question: I have a javascript that goes very deep in recursion. How can I increase the stack size so that I can execute it (something like "ulimit -s unlimited" in Unix systems)?
Long story:...
Open asked 13/2, 2016 at 14:15
1
I am building a charting tool in ember using cytoscape js and I can render chart data however I do not know how to set each node to display with a image that has other images/buttons that function ...
Schroer asked 7/12, 2017 at 19:37
2
I use cytoscape.js for show relations between nodes.
I want to create different stylish labels for one node.
I want more complicate stylish labels, then in the cytoscape.org official example.
How ...
Fugitive asked 13/8, 2017 at 9:27
2
I am trying to create a collapsible tree structure in Cytoscape using breadthfirst layout, to replicate the D3 collapsible tree.
I am trying to replicate this type of click action on nodes, but ad...
Annalee asked 6/1, 2017 at 13:20
2
Solved
I built a React component with Typescript that uses cytoscape (and its types) as a headless model. My objective is to create an NPM package so I can import it in other projects directly.
My library...
Deutzia asked 14/6, 2017 at 14:37
3
Solved
I have node labels mapped to the node "name" property, and I need the label to update on the cy canvas when the name is changed. I've been using the style
style: cytoscape.stylesheet()
.selector('...
Hearthstone asked 30/9, 2014 at 14:35
2
Solved
Context
I want to use cytoscape.js for visualizing graphs. While I am capable with a myriad of languages (C++, Mathematica, R, etc), I am new to Javascript, JSON, HTML, and CSS. Thus it would be fa...
Clairvoyance asked 29/10, 2016 at 9:19
1
When I add a position property on a node, it is ignored unless I also specify locked: true. I would like to specify initial positions on some nodes, yet still allow the user to move those nodes aro...
Unhorse asked 6/12, 2016 at 21:27
2
I have the following fields as my nodes data:
nodes {
data: {id: "something", type: "human"}
data: {id: "somethingElse", type: "mouse"}
}
Is there any way to set the shapes of the nodes based...
Slapbang asked 27/3, 2016 at 23:36
1
Solved
I am working on a web-based graph visualization/manipulation tool and I am evaluating a bunch of JS libraries including Cytoscape.js, jsPlumb, visjs for this purpose. Some of the high-level require...
Ruella asked 2/11, 2016 at 0:58
1
Solved
I previously asked how to remotely load cytoscape as a dependency. @GBE provided the following answer
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/2.7.10/cytoscape.js"...
Targe asked 28/10, 2016 at 7:0
1
Solved
This is a very simple question.
How can I indicate the cytoscape as a source via a url?
I know with D3 it is very simple
<script src="https://d3js.org/d3.v4.min.js"></script>
What i...
Winze asked 28/10, 2016 at 5:26
2
I am not sure how best to utilize the edge weight (e.g. strength of interaction between two interacting proteins) while generating a force directed layout using the CoSE plugin in cytoscape.js. Co...
Buran asked 30/10, 2015 at 21:50
2
Solved
I'm trying to create a cytoscape.js graph in which clicking on a node will change the color of any edges connecting to the node. I've been able to locate individual components but am not able to ge...
Sophistic asked 11/2, 2016 at 6:5
3
This example in the documentation:
cy.on('click', function(evt){
console.log( 'clicked ' + this.id() );
});
Results in:
Uncaught TypeError: Object [object Object] has no method 'id'
And ev...
Contribution asked 6/2, 2013 at 20:49
1
Solved
Is there any one-command way to replace all elements of my graph with new data in cytoscape.js?
In my case, after some operations on backend I have new graph-data and want to redraw my graph with t...
Willena asked 3/3, 2016 at 10:49
1
Solved
How can I add a new edge to connect 2 nodes via drag and drop? I would like to drag/draw a new edge from node x to node y manually via mouse.
It would be greatful, if you could give a working exam...
Brunildabruning asked 7/2, 2016 at 18:21
1
Solved
Here is an example of what I'm doing:
function showNeighbors(ele) {
cy.add(this.cyData.getElementById(ele.id()).neighborhood());
cy.elements().layout(layoutOpts);
}
This is the only why I can ...
Domain asked 15/10, 2015 at 14:35
2
Solved
I want to show node's details on mouseover event on all nodes in graph created with cytoscape.js. I have found a plug-in qtip, but this is not working.
How can i achieve this? Is there some other w...
Extinguisher asked 8/1, 2014 at 10:37
1
I find that when zoom is enabled, each time I scroll the mouse wheel, the graph becomes too large or too small. Is it possible to control the zoom level, in order to get a proper graph size as we n...
Pare asked 24/8, 2015 at 6:17
1
Solved
I'm trying to build tiles using Cytoscape.
Basically, each rectangle (tile) has a title and I want it to be written within the limits of that rectangle.
My code is:
var cy = cytoscape({
contain...
Adulterine asked 23/7, 2015 at 17:18
1
Solved
I'm starting to use this awesome library and I want to do a very simple thing: change the size of my nodes.
When I get the nodes from my server, they have a size attribute, which is an integer bet...
Way asked 21/3, 2015 at 1:32
1
Created graph using cytoscape.js. I have set the layout to 'grid'. Need to resolve following problem: original graph-
There is edge from Host3 to Host1 as well as from Host5 to host1,Edge from H...
Mondragon asked 16/2, 2015 at 11:14
© 2022 - 2024 — McMap. All rights reserved.