Which is the best line chart generation tool. i need to use it in ma web page. I could also be able to save it to image format. It should be able to plot graph based on a timeline such data pertaining to a particular range of time. I got sucked up using Google Chart. Problem with scaling in that. Any things else???
i highly recommend highcharts has a great documentation and awesome demostrations.
I'd recommend flot, it is lightweight, purely javascript based, and very powerful and extensible.
We've had good results with http://www.jqplot.com/.
Related
I sampled a small wikipedia collection from 2008 and trying generate a graph similar to this: http://en.wikipedia.org/wiki/File:Wikipedia-n-zipf.png
from the processing I did. I have word frequencies and ranks of words. How can I generate the graph on the fly from the data I collected? Thanks.
If I am understanding your question correctly, you want to generate PNG charts on the fly?
This Page lists a few great chart engines for PHP. If you want to generate graphics using PHP for word frequencies, my personal favorite is PCHART It is a really nice library to generate charts like that.
Google Chart is completely free and doesn't use as much server power, but you have much less control over caching, styling, etc. The key difference here is that the actual image generation is done by Google.
If you want it to look exactly like that, you can use any of them and use the most basic settings to get what you need.
I think you want to use the google chart api / graph tools.
You can find it here
Line charts documentation and examples
I am simply looking for the communities recommendation on an open library to help develop statistical charts, graphs, and maps for a website with HTML 5 / javascript. Something similar to what fusion charts does but without having to pay an arm and a leg and having access to the deep code.
Thank you everyone. :)
Flot and
Highcharts are both pretty decent. They both require JQuery.
Raphael is another great choice, supports all browsers including IE6.
jQuery + any number of plugins designed just for that.
The Filament group has been doing a lot of work on that:
http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/
Take a look at Dojo Charting
It's very nice library for charting.
Check out Google's Visualization API.
I've googled tons of times but i really find flash map charts where you rollover and get a value. i already checked out anychart, anything better?
P.S. I don't want static image charts.
Thanks
To turn my comment into an answer:
If you want charts like Google Analytics, you can use the Google interactive charts API to create interactive maps. It's the same API. See: Google Goemap Visualization Examples
Take a look at AmMap http://www.ammap.com/ As far as I understand it is what you are looking for.
PHP/Swf is probably fit for your requirements
http://www.maani.us/charts/index.php
I recommend using a jquery plugin http://www.jqplot.com and avoid flash.
You can generate the input for the graphs using php.
How could I make an image graph from values in a database? The idea came from "Steam", which uses a graph to show how many users are online. How could I do the same thing? It seems like the graph is one whole image; not made up of parts. Here's an image of the graph from Steam:
alt text http://d-load.org/public/steam-graph.PNG
You want to use JPGraph, it is a very power PHP graphing library.
http://www.aditus.nu/jpgraph/
Use this GD module from PHP. http://php.net/manual/en/book.image.php
The easiest way is using the Google Chart API. You can generate a graph by simply creating a url with your values (basic example)
You will mainly need to keep a track of how many users were connected at each period of time. Drawing the graph is easy, they are some really neat library to help you with it. ;)
+1 for Svisstack's link. Here's another one (less supported, less documented, but more features): http://www.php.net/imagick
if you are the javascript lover use this, http://raphaeljs.com/
they keep updating and many advance function.
I use FLOT with Jquery -> http://code.google.com/p/flot/
I find it easier to work with CSS than GD library to get the layout I want.
There are many javascript-tools. For example, you can choose jQuery's plugin - jqplot or Dojo charting etc...
With those, you can generate very good-looking charts/graphs.
I want to take data from a table that'll be almost exactly similiar to the one below, but have it in a line graph. The date values would be on the Y-axis, and it would plot the XP values on the X-axis. Since the numbers for each user vary, I'd need a way to make the distance between each point plotted "relative", I guess.
Example table http://img687.imageshack.us/img687/4175/tablel.png
Any suggestions?
If you want to generate a static image of the chart you could use Libchart or pChart for PHP.
It's better to get the data from the data source, not from the rendered table. Anyway it's two separate questions: how to take data from a table and how to draw a graph.
Drawing a chart in PHP is pretty easy. HTML/CSS can be used to draw a bar and PHP to calculate the bar length.
Or if you want to go the JavaScript route, maybe Raphaƫl.
I would go for HighCharts.
If you're using a linux/unix platform, you probably already have Gnuplot installed. Gnuplot can take a plot file and a datafile and generate an image, thus:
History.gnuplot, which needs to be generate first:
set title "Rawr_satch history"
set xlabel "Time"
set ylabel "Ranking"
set output "rawr_satch_graph.png"
set terminal png color
set xdata time
plot "rawr_satch_xphistory.dat" with linespoints
Which assumes a data file rawr_satch_xphistory.dat has already been generated, formatted thus:
2010-03-06 385581123
2010-03-05 384895430
2010-03-04 382983388
People have also written interfaces into Gnuplot for most languages, for example PHP-GNUPlot. Gnuplot scripts can be quite complex, and you could plot multiple variables, etc.
I use and fully recommend the Google Chart Tools API. If you're looking for a simple line-graph, they provide a very simple API that you can call that requires no installation or configuration. Some of the documentation is confusing, but I've been able to figure it out with a little bit of patience.
All that is required is an IMG tag and point the src to the Google URL with the right parameters.
They also have a more interactive Javascript library if you want to provide more functionality later on.
I've used the following from PHP: Google Charts, Open Flash Chart, YUI charts (Flash), and AMCharts (also Flash).
They're all pretty easy to use and all have their pros and cons. If you want to show more than a single graph on one page, don't use Flash-based charts. It turns out browsers have trouble displaying a dozen Flash charts all at once. AMCharts is probably the most feature rich, but the options available depend on which of their chart packages you select, and configuration is pretty complex.