visualization

Any library for visualizing module dependencies in Node.js?

♀尐吖头ヾ 提交于 2019-12-07 04:08:23
问题 As part of a major refactoring of my Node.js app (going DDD), I'm looking for a library that through inspecting code is able to visualize module dependencies (by means of 'requiring' them) between different node-modules. Visualizing in Table-format is fine, I don't need fancy graphs. Any Node libraries out there? 回答1: I do not know if this exists, but I found the following by quick search: http://toolbox.no.de/packages/subdeps http://toolbox.no.de/packages/fast-detective Maybe subdeps is not

d3 clustered force layout, distance between cluster center

末鹿安然 提交于 2019-12-07 03:35:27
(I'm a d3js newbie) I'm using the d3.layout.force to visualize a graph of nodes that are divided into clusters, basically something like this (even if in my version every cluster's node keep the gravity focus set to its cluster's center): http://bl.ocks.org/mbostock/1747543 What I'd like to accomplish is to keep each cluster separated from the other with a MIN distance. I set random points for each cluster center at initial stage: for(var i = 0; i < clusterLength; i++) { var baseX = 3 var baseY = 7 var x = halton(i + 1, baseX) * width + (Math.random() * 50) var y = halton(i + 1, baseY) *

Visualization of ActiveRecord / NHibernate Entity Model

耗尽温柔 提交于 2019-12-07 02:37:31
Has anyone come across a tool to visualize an ActiveRecord / NHibernate entity model? The best thing I can think of is generating a class diagram from VisualStudio of your classes .... Check out ActiveWriter . Sample screenshot: alt text http://img30.imageshack.us/img30/1001/modelingsurface.png 来源: https://stackoverflow.com/questions/1271626/visualization-of-activerecord-nhibernate-entity-model

R - graph frequency of observations over time with small value range

China☆狼群 提交于 2019-12-07 01:55:10
问题 I'd trying to graph the frequency of observations over time. I have a dataset where hundreds of laws are coded 0-3. I'd like to know if outcomes 2-3 are occurring more often as time progresses. Here is a sample of mock data: Data <- data.frame( year = sample(1998:2004, 200, replace = TRUE), score = sample(1:4, 200, replace = TRUE) ) If i plot plot(Data$year, Data$score) I get a checkered matrix where every single spot is filled in, but I can't tell which numbers occur more often. Is there a

Animating pie chart with Google Visualization

不问归期 提交于 2019-12-07 01:32:29
问题 I am experimenting with google charts. I want a pie chart to animate from 0% to 75% (see the image below). I am attempting to achieve this through google charts. I am creating two sets of data, one will start at 99%, the other at 1%. I want to invert and animate these. I have achieved changing the values through animation, but cannot figure out how to get them to animate. <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript">

Pandas - Stacked horizontal barchat for timeline?

爷,独闯天下 提交于 2019-12-06 18:48:31
I'm looking at creating a timeline to show state changes for some items. For each item, I have a list of events - e.g.: 08:00 - Item A is now in state RED 08:00 - Item B is now in state GREEN 08:55 - Item B is now in state PURPLE 09:00 - Item A is now in state BLUE 09:22 - Item A is now in state YELLOW 10:20 - Item B is now in state RED etc. I'm using pandas, and was thinking of using the stacked horizontal barcharts ( http://pandas.pydata.org/pandas-docs/stable/visualization.html#bar-plots ): However, the barchart in this case is backed by a dataframe like this: In [17]: df2 Out[17]: a b c d

In ggplot2 and facet_wrap, how to remove all margins and padding yet keep strip.text?

这一生的挚爱 提交于 2019-12-06 17:50:45
问题 This might primarily be a result of me misunderstanding how panel.margin = unit(...) works in the theme() function...but I'm unable to customize margins in facet_wrap the way that I'd like. Basically, I want a facet_grid that looks like this, with facet text (i.e. strip.text ) inset in each facet and no spcaing between each facet: (I've left in the pink borders to show the dimensions of each facet) So here's the code so far. To set up the data and plot: library(ggplot2) library(grid) p <-

How to draw circles at different times with D3js?

南楼画角 提交于 2019-12-06 15:35:48
Using d3js, I need to draw(append) circles, not all together but with less then one second of distance. So one circle in x position, another one in y position after 0.5 second. Use setTimeout. Here is the working code snippet. var nodes = [{ "name": "6", "x": 207, "y": 305 }, { "name": "7", "x": 404, "y": 310 }, { "name": "8", "x": 420, "y": 510 }, { "name": "9", "x": 540, "y": 126 }, { "name": "10", "x": 350, "y": 150 }, { "name": "11", "x": 177, "y": 320 }, { "name": "12", "x": 200, "y": 190 }, { "name": "13", "x": 170, "y": 150 }, { "name": "14", "x": 107, "y": 510 }, { "name": "15", "x":

OpenGL or Flash for 3d visualization in the browser

杀马特。学长 韩版系。学妹 提交于 2019-12-06 13:40:02
I am planning create a site that lets users in finance visualize the price of a foreign exchange option in 3d. x = price of underlying, y = price of option, z = days left to maturity. In other words, rather than a simple option payout diagram, this would allow you, on the Z axis, to view what the P&L scenarios would be if you sold before expiry of the option. In short, I want a visualizaion tool. But given that the surface of the P&L might be quite "curvy", it's going to be good for users to rotate around the space in real time. And it's going to be good to slice the surface up along any plane

Google IntensityMap Visualization US States

ぃ、小莉子 提交于 2019-12-06 09:19:15
问题 I am attempting to use the google visualization library - intensity map. I have a list of states and the number of users in each state. I can only get the world map to show, I want to highlight the us states and only show us map. http://code.google.com/apis/visualization/documentation/gallery/geomap.html Does anyone have a good example, tutorial or instructions on how to do this? 回答1: This turned out to be very easy. Just need to figure out the region name 'usa'. function drawVisualization()