What do you think is the best diagram and graphing toolset for PHP that also look good?
I know that there are some open source graphing tools for PHP out there, but they are not really visually appealing to me.
What do you think is the best diagram and graphing toolset for PHP that also look good?
I know that there are some open source graphing tools for PHP out there, but they are not really visually appealing to me.
I think you should check out pChart. It is very very slick, including antialiasing and all sorts of nice aesthetics. It's pretty easy to use and there are a tonne of tutorials:
If you are in need of a pure PHP solution, then I think the ezComponents graph package is what you are looking for. It's very sophisticated and the examples are pretty outstanding, check this tutorial for a couple examples.
The reasons why I like to recommend ezComponents:
You should give more details about what you want to do with it. Still, I used Artichow to produce a economical data analysis to my business department, and it was perfect.
Some relevant points :
The tool is really easy to learn and produce nice graphics at a reasonable speed rate.
Here is what it looks like (from the official doc) :
<?php
/*
* This work is hereby released into the Public Domain.
* To view a copy of the public domain dedication,
* visit http://creativecommons.org/licenses/publicdomain/ or send a letter to
* Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
*
*/
require_once "../../BarPlot.class.php";
$graph = new Graph(450, 400);
$graph->setAntiAliasing(TRUE);
$blue = new Color(0, 0, 200);
$red = new Color(200, 0, 0);
$group = new PlotGroup;
$group->setPadding(40, 40);
$group->setBackgroundColor(
new Color(240, 240, 240)
);
$values = array(12, 8, 20, 32, 15, 5);
$plot = new BarPlot($values, 1, 2);
$plot->setBarColor($blue);
$plot->setYAxis(Plot::LEFT);
$group->add($plot);
$group->axis->left->setColor($blue);
$group->axis->left->title->set("Blue bars");
$values = array(6, 12, 14, 2, 11, 7);
$plot = new BarPlot($values, 2, 2);
$plot->setBarColor($red);
$plot->setYAxis(Plot::RIGHT);
$group->add($plot);
$group->axis->right->setColor($red);
$group->axis->right->title->set("Red bars");
$graph->add($group);
$graph->draw();
?>
Not necessarily the best, but Open flash chart looks nice and is quite easy to use if you don't mind embedding Flash objects in your site.
Component includes swf file which is embedded to the page and classes for outputting needed html in several different languages including PHP.
I would recommend fusioncharts - fusion charts demo
It uses XML so you can use whatever language you like. Very clean and very visually appealing. I think they even have maps.