graphing

How can I make a stepline or stepped chart in chart.js or D3?

点点圈 提交于 2019-12-07 01:23:03
问题 I'm able to accomplish this in Google Spreadsheets, below is a screenshot: Here's the small dataset in CSV Buy PPU,Sell PPU,Net PPU 0.023,0.019,-0.000725 0.026,0.0165,-0.003725 0.021,0.021,0.00735 0.015,0.0165,0.0147 0.021,0.028,0.0168 0.018,0.028,0.0198 jsFiddle with basic configuration: http://jsfiddle.net/kaatula/j3FJf/1/ Chart.js documentation: http://www.chartjs.org/docs/ D3 documentation: http://strongriley.github.io/d3/api/ Any help is appreciated. I'm not seeing an example in either

Force-directed graphing

拈花ヽ惹草 提交于 2019-12-06 15:45:31
问题 I'm trying to write a force-directed or force-atlas code base for a graphing application I'm building for myself. Here is an example of what I'm attempting: http://sawamuland.com/flash/graph.html I managed to find some pseudo code to accomplish what I'd like on the Wiki Force-atlas article. I've converted this into ActionScript 3.0 code since it's a Flash application. Here is my source: var timestep:int = 0; var damping:int = 0; var total_kinetic_engery:int = 0; for (var node in list) { var

Graphing routines in Tcl/Tk

丶灬走出姿态 提交于 2019-12-06 05:22:00
I want to do simple graphing routines in Tcl/Tk like scatter plot, x-y plot, histograms. I am using Tcl/Tk 8.5.7. I found in Tcler's wiki that there are few options such as BLT which is not supported in Tcl/Tk 8.5+ Is there any Tcl/Tk interface to gnuplot or any widget to accomplish graphing? Please let me know about the choices for graphing routines in Tcl/Tk. Gnuplot can indeed produce output that Tcl/Tk can consume. This page on the Tcler's Wiki describes how (though with some extra complexity because it is doing animations). Here's a simplified version: package require Tk eval [exec

Plotting animated exchange (plotting directional edges)

孤街浪徒 提交于 2019-12-06 03:34:03
问题 I once saw this plot (LINK) on shipping trades. I work with dialogue exchanges and thought it may be interesting to map this sort of exchange using R. This is a larger question but I think it may be useful to the community at large. Let's say we have 7 people sitting around a table like this: And I have recorded dialogue exchanges speaker talks and listener hears. I've created a dummy data.frame with this sort of information. here's the head: speaker receiver duration speaker.x speaker.y

Graphing calculator: how to find the appropriate part of the graph to show

有些话、适合烂在心里 提交于 2019-12-05 18:52:08
I am working on a graphing calculator (you know, one where you type in a formula, let's say x^2 and you get the graph of that function). The problem I am having is how to offset and scale the view of graph as to show the interesting section of the function. I have exhausted all the 'simple' ideas I have had. Let me show some example: - sin(x) => interesting section is between y = [-1,1] and offset (0,0) - x^2 => interesting section is between y = [0, 100] and offset is (0,0). (100 has been picked arbitrarily) - 100x^2 - 10000 => y = [-10000, 100*] and offset is (-10000, 0) I figured I could

Relationship Graph with D3

梦想的初衷 提交于 2019-12-05 18:40:59
How would I create the following graph with D3? I don't know the name for this type of visualization, and the closest I could find were "force-directed" graphs. Legend: Filled nodes are people, non-filled nodes are attributes (e.g. favorite color). This is my version: http://jsfiddle.net/doraeimo/JEcdS/embedded/result/ which is easy to show system performance and network flow. code is not here Hacked together a gross but working version: http://bl.ocks.org/hijonathan/5793014 Basically, I started with an array of people nodes that had some properties on them. I then loop through that and

port JUNG into GWT [closed]

跟風遠走 提交于 2019-12-05 16:52:52
there is a very good java graphing library JUNG I wonder if there exists any GWT library that does what JUNG do ? i'm aware there exist a commercial Javascript graphing library mxGraph . But mxGraph is very expensive and have a very restrictive licensing policy. does anyone knows of any GWT graphing library similar to mxGraph (JS) or JUNG( java)? if there is no GWT library for graphing like JUNG, I'm keen on porting JUNG into GWT. I was thinking to use gwt-graphics library as a basis and extend it with more JUNG like features . what is a good strategy to port JUNG into GWT? should i rewrite

Adding one label to each bar graph r

梦想的初衷 提交于 2019-12-05 14:03:49
I am trying to compile a graphical depiction of test scores from 50 students. My ultimate goal would be to create 50 variations of the bar chart, one for each student, with only the one student's name on the axis so he/she can see how they compare to the others without disclosing who scored what. In the photo below, I would like to put "Jackson" on the first bar and leave the others blank for the first variation. The second would only have "Smith", etc. Additionally, I would like to split the data based on their year in school, the variable "level". names <- c("Jackson", "Smith", "Johnson",

ILNumeric continuous rendering plots

霸气de小男生 提交于 2019-12-05 13:04:40
Is there a way to continously plot changing array data? I've got a ILLinePlot to graph the line to changing data on a button event, but I would like to make it continuous. while (true) { float[] RefArray = A.GetArrayForWrite(); //RefArray[0] = 100; Shuffle<float>(ref RefArray); Console.Write(A.ToString()); scene = new ILScene(); pc = scene.Add(new ILPlotCube()); linePlot = pc.Add(new ILLinePlot(A.T, lineColor: Color.Green)); ilPanel1.Scene = scene; ilPanel1.Invalidate(); } The problem I'm running into is that the loop runs, and i can see updates of the array, but the ILPanel does not update. I

Can someone explain how to graph this sum in MATLAB using contourf?

雨燕双飞 提交于 2019-12-05 12:22:31
I'm going to start off by stating that, yes, this is homework (my first homework question on stackoverflow!). But I don't want you to solve it for me, I just want some guidance! The equation in question is this: I'm told to take N = 50, phi1 = 300, phi2 = 400, 0<=x<=1, and 0<=y<=1, and to let x and y be vectors of 100 equally spaced points, including the end points. So the first thing I did was set those variables, and used x = linspace(0,1) and y = linspace(0,1) to make the correct vectors. The question is Write a MATLAB script file called potential.m which calculates phi(x,y) and makes a