Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the best Javascript/Flash frameworks to render graphs or charts from data?

Ideally I'd like to do as little preparation data work on the server as possible. The less I have to do to prep the data from the database to make a given chart, the happier I am and the more view I can make in the time.

Some of the things I'd like to chart are, for example:

  • The distribution of a series of response times
  • The number of occurrences per category (basic bar chart)

I'm sure there are others I haven't thought of yet.

Anything that helps me get from a series such as:

[1, 2, 2, 2, 3, 4, 5, 5, 3, 1] or more likely something like [1.2, 3.2, 3.1, 1.1, 4.3, 3.4] where it isn't just a case of counting the frequency of the item

to an actual distribution would be great.

Thanks.

EDIT: To clarify I guess I'm asking for more than just charting APIs, a search on Yahoo or Stack Overflow already finds answers to that. I'm looking for something that can help me turn data into visualizations with the least effort. So with the series above, something that could map it directly into some standard distributions such as a Gaussian distribution.

like image 939
sh1mmer Avatar asked Feb 21 '09 07:02

sh1mmer


2 Answers

I like Google Charts API. It is brain-dead simple to use. You generate your data in the URL for an image, and the Google server spits back the GIF with the chart in it. You don't need JavaScript or Flash.

like image 194
Diodeus - James MacFarlane Avatar answered Sep 29 '22 17:09

Diodeus - James MacFarlane


I use JS Charts, which is a Javascript based one, looked simple and easy enough for me to use. They even have support for xml data in addition to js. It is free and they have got some examples.

Works on IE and Chrome fine, so ideally should work on Firefox. as well.

On the Flash side, there is Open Flash Chart , they have got some helper classes for major languages.

Edit: based on the additional information in question i guess Google Visualization API (http://code.google.com/apis/visualization/) might work out for you.

like image 26
Dinesh Manne Avatar answered Sep 29 '22 18:09

Dinesh Manne