Creating a graphing software

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

Creating a graphing software

Post by parka »

I'm trying to create an application that can turn data into graphs.

Not sure if PHP might be the correct choice so I'm seeking some suggestions here.

The goal is to have users upload their data files (TSV or XML format), have them analyzed and create graphs out of them.

The data is private so I'm thinking it should not be hosted on the Internet. That would mean (?) that users have to install PHP (with the LAMP or variations) on their computers. Installation can be tricky so I'm hope I don't have to choose that path.

Question is how should I create this software if I were to go with PHP? Or is PHP the right tool?

-

I also know a bit of Actionscript and wonder if Flash would be better. Or even Microsoft Excel.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Creating a graphing software

Post by John Cartwright »

There are several good libraries in PHP to generate graph images, just google around and you'll stumble upon them. JpGraph comes to mind.

However, I would definitely recommend flash for generating rich interactive graphs (which also look way better). PHP/SWF Charts comes to mind.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Creating a graphing software

Post by Jonah Bron »

Having people install a LAMP stack would just be silly. You can keep private data on the internet; just create a user login system where users can only see their own data.

If you want this to be an application on the user's desktop, I understand Python has plenty tools for graphics and such.
However, I would definitely recommend flash for generating rich interactive graphs (which also look way better). PHP/SWF Charts comes to mind.
Or <canvas> ? 8)
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

Re: Creating a graphing software

Post by parka »

John Cartwright wrote:There are several good libraries in PHP to generate graph images, just google around and you'll stumble upon them. JpGraph comes to mind.

However, I would definitely recommend flash for generating rich interactive graphs (which also look way better). PHP/SWF Charts comes to mind.
Thanks.

jpgraph looks really great.

The PHP/SWF chart looks like what I want, except I've to code it myself as I need to distribute the software.
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

Re: Creating a graphing software

Post by parka »

Jonah Bron wrote:Having people install a LAMP stack would just be silly. You can keep private data on the internet; just create a user login system where users can only see their own data.

If you want this to be an application on the user's desktop, I understand Python has plenty tools for graphics and such.
However, I would definitely recommend flash for generating rich interactive graphs (which also look way better). PHP/SWF Charts comes to mind.
Or <canvas> ? 8)
My programming skills isn't that good so hosting on the web would be a security issue for me. I'm preferring the desktop application at the moment.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Creating a graphing software

Post by John Cartwright »

I would recommend you use a language suitable for desktop applications, such as c#.

There are utilities to convert php to binary files which can be used for desktop applications, but I can't for the life of me remember what its called and I'm on my iPhone so I can't be bothered to look it up, sorry.
W
mkz
Forum Newbie
Posts: 11
Joined: Tue Oct 05, 2010 10:37 am

Re: Creating a graphing software

Post by mkz »

Here's a handy API for graphing/charting that not everyone has heard about: Google Charts.

You use Google Charts by requesting an image URL on the the service's web server. You supply the parameters and data in the query string.

It's particularly useful for fast prototyping and getting some eye candy into a quick page. Just generate an <img> tag with the data in the URL and you instantly get something like these examples:

Image

Image

Look at the URL for the images, the data's all there. If you change a value and refresh it, the image will immediately reflect the change. There's full documentation on the project's site.
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

Re: Creating a graphing software

Post by parka »

mkz wrote:Here's a handy API for graphing/charting that not everyone has heard about: Google Charts.

You use Google Charts by requesting an image URL on the the service's web server. You supply the parameters and data in the query string.

Look at the URL for the images, the data's all there. If you change a value and refresh it, the image will immediately reflect the change. There's full documentation on the project's site.
Wow! That looks really cool. Didn't even know it existed. Definitely worth a look.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Creating a graphing software

Post by Jonah Bron »

John Cartwright wrote:I would recommend you use a language suitable for desktop applications, such as c#.

There are utilities to convert php to binary files which can be used for desktop applications, but I can't for the life of me remember what its called and I'm on my iPhone so I can't be bothered to look it up, sorry.
W
Google RoadSend or HipHop (thanks to PCSpectra).
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Creating a graphing software

Post by greyhoundcode »

Jonah Bron wrote:Google RoadSend or HipHop (thanks to PCSpectra).
Unless I'm mistaken, HipHop isn't in itself suitable for desktop apps. Roadsend is (you can compile your code and incorporate a microserver) however - and this is just from my own personal experience - it is difficult to get it working, especially on a modern version of Windows.

A shareware alternative exists in the form of ZPE, which does exactly what it says on the tin. Worth looking into if you don't want to rewrite your code in a more suitable language.
Post Reply