graph-visualization

Hide min and max values from y Axis in Chart.js

情到浓时终转凉″ 提交于 2019-12-04 13:14:02
问题 I have assigned the min and max of Y axes with the tick configuration.But I do not want these min max values to be shown in the graph.I need to hide these values at both the ends ticks: { callback: function(value){ returnparseFloat(value.toFixed(2)) }, min: y1_min, max: y1_max, fontColor: "#000000", fontSize: 12 }, 回答1: In order to hide specific ticks (in your case the first and last tick), you have to use the scale afterTickToLabelConversion callback property and set the value = null of the

visualize the GnuPG web of trust

北战南征 提交于 2019-12-04 08:59:55
问题 Is there some way to visualise the GnuPG web of trust? With my (or any other) key in the middle, with the signed keys in the first circle, the trustpersons' trustpersons in the next and so on? If there is nothing like that, I should be able to build something like that based on the key signatures from my lokal keyring, right? 回答1: One approach is to convert the output of gpg --list-sigs to a dot file that can be rendered into a graph with the graphviz tools. Use gpg, sig2dot, and dot like

Tree visualization library - the one that calculates all node and line coordinates for given tree data

╄→尐↘猪︶ㄣ 提交于 2019-12-03 21:54:56
(Visual) C++ world. I have a tree structure, want to visualize it. More specifically: I have a tree data. I want the library that processes this data and computes coordinates (in any logical coordinate space, say 2000x2000 logical pixels) for each nodes, AND for each lines connecting them. Line connecting the two nodes might not be a simple straight line, it might be curve or some sort of path consisting of straight line segments. Ideally I'd like the line defining path to be calculated for the given tree nodes' coordinates as well, in case the user will drag and rearrange the nodes. Shortly,

How do I control the bounce entry of a Force Directed Graph in D3?

∥☆過路亽.° 提交于 2019-12-03 13:31:08
I've been able to build a Force Directed Graph using a Force Layout. Most features work great but the one big issue I'm having is that, on starting the layout, it bounces all over the page (in and out of the canvas boundary) before settling to its location on the canvas. I've tried using alpha to control it but it doesn't seem to work: // Create a force layout and bind Nodes and Links var force = d3.layout.force() .charge(-1000) .nodes(nodeSet) .links(linkSet) .size([width/8, height/10]) .linkDistance( function(d) { if (width < height) { return width*1/3; } else { return height*1/3 } } ) //

JavaScript library for dynamic network visualization? [closed]

◇◆丶佛笑我妖孽 提交于 2019-12-03 12:42:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . What is a good JavaScript library for the visualization of time-evolving/dynamic graphs/networks? My data is in the form of source -> destination at time triples like the following A -> B at 100 B -> C at 101 A -> D at 104 C -> D at 105 ... On the screen I would like to see an animation of points connected by

Color a particular node in Networkx and Graphviz

牧云@^-^@ 提交于 2019-12-03 11:55:53
问题 I am writing a program to plot a graph from a distance matrix. It is working fine. Now I want a certain node and a certain edge to be of a particular color of my choice. How do I do that? The program is in Python and uses Networkx and Graphviz import networkx as nx import numpy as np import pickle from random import randint p_file = open('pickles/distance') Dist = pickle.load(p_file) p_file.close() p_file = open('pickles/names') Names = pickle.load(p_file) p_file.close() dt = [('len', float)]

Graph visualization libraries for SWT/AWT

一笑奈何 提交于 2019-12-03 08:28:06
Is there a mature, solid open-source graph visualization library implementation for SWT or AWT (I am referring to sets of vertices connected with edges, not charts and diagrams)? Which one do you use/recommend? I saw Zest for SWT, but could not find a Maven repository for it. Thank you. I recommend Prefuse: http://prefuse.org/ Have a look at JUNG ( http://jung.sourceforge.net/ ) If you don't want to use Zest (which I prefer), there is still Draw2D : Draw2D Also, there is a good tutorial on this available here: Display a UML Diagram using Draw2D Finally, I found this Maven repository:

What is the difference between D3.js and Cytoscape.js? [closed]

烂漫一生 提交于 2019-12-03 05:08:57
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . What is the difference between D3.js and Cytoscape.js? Why would someone choose Cytoscape over D3.js? 回答1: D3 is for charts and mostly static graphs. Cytoscape.js lets you manipulate highly-customisable and interactive graphs, and has an API as easy to use as jQuery. D3 is

Color a particular node in Networkx and Graphviz

孤街醉人 提交于 2019-12-03 03:17:42
I am writing a program to plot a graph from a distance matrix. It is working fine. Now I want a certain node and a certain edge to be of a particular color of my choice. How do I do that? The program is in Python and uses Networkx and Graphviz import networkx as nx import numpy as np import pickle from random import randint p_file = open('pickles/distance') Dist = pickle.load(p_file) p_file.close() p_file = open('pickles/names') Names = pickle.load(p_file) p_file.close() dt = [('len', float)] A = np.array(Dist)*5 A = A.view(dt) G = nx.from_numpy_matrix(A) G = nx.relabel_nodes(G, dict(zip(range

Radial Tree layout algorithm

我的梦境 提交于 2019-12-03 00:07:18
I have implemented a tree data structure in which every node holds (recursivly) a list of pointers to it's children. I am trying to calculate the (x,y) coordinates for visualizing the tree. I went through this article: http://gbook.org/projects/RadialTreeGraph.pdf Cut I can't figure out how to gest past the first level, i.e This is what I have written so far: for (int i = 0; i < GetDepth()+1; i++) { if (i == 0) { GetNodesInDepth(i).at(0)->SetXRadial(MIDDLE(m_nWidth)); GetNodesInDepth(i).at(0)->SetYRadial(MIDDLE(m_nHeight)); continue; } double dNodesInDepth = GetNodesInDepth(i).size(); double