graph

sencha touch and charts

Hello, Has anyone been able to incorporate Charts and graphs into Sencha Touch? If so, an example would be appreciated. Thanks ...

Calculate the Y Axis interval for a chart

Hi When creating a chart of, e.g. daily sales figures for the month. Does anyone know how to calculate a suitable Y Axis interval? I've been looking at Excel which seems to choose nice intervals like 100, 200, 500, 1000, 2000 or 5000, etc depending on the numbers involved and the size of the range, but I can't work out what formular or...

How do I auto-layout boxes on a flowchart?

I have some data that represents a flowchart. (A bunch of Jira statuses and their transitions to other statuses.) I also have a crude way to position each flowchart item on an A4 page in an OpenOffice Draw document. (Though better suggestions welcome for that.) However, I'd prefer not to have to output a line of boxes and re-arrange th...

Traverse undirected graph in prolog

Hi everyone, In short: I am trying to traverse an undirected graph in prolog, but don't know how to, any advise would be greatly appreciated. Background: Trying to model rail system, with stations as nodes and their links as edges with weight 1. I had no problem doing it in a directed manner, but cant do it in an undirected graph. ...

How do I show time on the x-axis in Flot?

I am trying to graph with Flot some data over time. The data being graphed contains: time: unix epoch time (whole seconds since 1/1/1970) value: it varies but it's always an integer between 0 and 10000 The time values can be in intervals of 5, 60 or 3600 seconds. How do I coerce Flot into drawing me graphs where it shows the time ...

JDSL, the graph library - where is it?

Can anyone locate JDSL, the java graph library? It used to be here, but you can't actually download it, while http://www.jdsl.org/ (don't bother visiting) is just spam. Ok, perhaps the project is dead, but still, anywhere I can find the binaries? Searched high and low but no lack. ...

Algorithm to transform a workflow DAG into parallel resource allocation?

Say I have a graph where nodes are workloads of various kinds and edges are dependencies between the workloads. (This is a DAG since cyclical dependencies must not exist.) I also have a set of multiple agents who can perform the work. Some workload varieties may be given to any agent, others must be given to a specific agent, and other...

minimum connected subgraph containing a given set of nodes

I have an unweighted, connected graph. I want to find a connected subgraph that definitely includes a certain set of nodes, and as few extras as possible. How could this be accomplished? Just in case, I'll restate the question using more precise language. Let G(V,E) be an unweighted, undirected, connected graph. Let N be some subset...

Plotting evolution of 2D vector in 3D as a ribbon in MATLAB

I would like to plot how the amplitude and orientation of a 2D vector evolves over time. To do this I would like to create a graph reminiscent of the canonical E & B field graphs you may recall from an introductory electricity and magnetism class. Specifically, I would like to connect my 2D vector points with a ribbon, so that they ...

How to visualize a directed graph with ordered edges?

I want something I can easily imagine. It's hard to reason with crossed arrows and edges colored by order. I don't want the nodes replicated, however. That's more load on the brain. ...

Make Facebook _not_ automatically select a thumbnail from a page?

I'm using the Graph API to post to a user's wall via a 3rd party website. The update contains a link to said 3rd party website. (In functionality, it's kind of like just putting a Facebook "Like" button on the 3rd party page, except I want some more finely-tuned control over how the caption looks on Facebook.) I am not specifying a pic...

Help Required With Graph Plotting in MATLAB

I am about to present my work that I have created in MATLAB, but I am having trouble manipulating my data into a presentable form using the plot function. My code looks like this: [inputname, pathname] = uigetfile('*.wav', 'Select WAV-file'); thumb1 = inputname; %# Get filename information fprintf('\n%s is being turned i...

What is an easy way to display graphs in Ruby?

I am looking at some graphing options, and would like one that has the cleanliness of Sparklines gem but that doesn't require Rmagick. I'd like one with some clear tutorials, too. ...

How can I create a time-series array so I can have a bar graph in Ruby on Rails?

I have a model, ContactEmail that has a date_sent attribute and an email_id, referencing another model Email. I would like to create a bar graph which shows on the x-axis dates and on the y-axis the number of ContactEmails that were sent on a specific date. I would like to also do the same, filtered for ContactEmails where email_id equ...

Drawing chart in a dialog

Hello all, I have a conceptual question to ask: I created a custom dialog (extends Dialog) and I want to draw a chart (dynamic data, not static) in the top third of the dialog. What's the best (only?) way to approach this? A) Get a canvas to the dialog and draw to it? Seems like I need access to the dialog's draw, yes, or can I do th...

Drawing a triangle in a coordinate plane given its three sides

The length of three sides of the triangle, a, b and c will be given, and I need to find the coordinates of the vertices. The center (probably the circumcenter) can either be the origin or (x,y). Can anyone point me in the right direction? ...

Plotting Contrasting graph(s) from a dataset using R

Dear R users, I have a set of data (1000+ animals) from two seasons (winter and summer) and would like to demonstrate the differences in the gestation length (days) pattern in these two seasons. My data is similar to this: id <- c(1,2,3,4,5,6,7,8,9,10) season <- c(1,1,2,2,1,2,1,1,2,1) gest <- c(114,NA,123,116,NA,120,110,NA,116,119) da...

How to customize a discrete function plot in MATLAB?

I would like to plot discrete values in MATLAB like this: stairs() and stem() make similar plots but can I configure one of them to look like the image above? ...

A traveling salesman like problem

Given a set of points in the 2D Euclidean plane: P={V1,V2,..,Vn}, and we assume that there are K different types of points:T1,T2,..,TK, every point Vi in P belongs to exactly one of the K types. Definition of KTSP tour: Given an arbitrary location point V0 in the same 2D Euclidean plane (V0 has no type), a path V0->V'1->V'2->V'3->....-...

Looking for some ideas on how to create a graph from a sql table and output it to a webpage

I am familiar with vbscript, I am looking for a few ideas on how to do this. I am open to trying other scripting languages. The graph does not have to be incredibly fancy. Any suggestions would be greatly appreciated. ...