Is there any libraries to visualizate simple dependency graphs?
I suppose that SVG is good solution.
GraphViz does a nice job for tiny graphs, but not for huge ones. If your graph is reasonlably large, try aiSee or have a look at the alternatives on this list.
I'm not sure about PHP libraries, but there's the tool called Graphviz which can be invoked from your PHP code and produce .SVG visialization of your graph.
I really like Google Chart API: http://code.google.com/intl/fr/apis/chart/
Really simple to implement and there are quite a lot of graph styles.
Checkout http://thejit.org/
I used http://www.aditus.nu/jpgraph/ for drawing simple graphs.
ChartDirector is the best, and it has a lot of flavors thus has versions for PHP/ASP/COM/VB/.NET/JSP/Java/ColdFusion/Perl/Python/Ruby/C++.
By learning one, you then be able to use in many programming languages.
The if you mean graphs like in "dependency graph", then Graphviz should be mentioned.
Related
can we draw graph with zend framework. I so, how to do data thing ? Is there some online resource to get familiar with it.
Thanks
I'm not sure about Zend Framework, but I seriously recommend Google Chart Tools API. It's easy to use and customize and is pretty powerful!
Edit: When I last used it, I generated the data using plain old PHP by looking at a javascript example and spotting the pattern, then just having php echo's everywhere I need them.
For creating graphs use http://thejit.org/
It will take some brain power, but I would recommend looking into Dojo simply because Zend has some built view helpers for dojo. At the end of the day, your going to have to integrate what ever solution your pick yourself.
I'm intrested in the best way to draw a graph: i have a network and i'd like to draw a map of it. I know how to use gd, but i don't know how to make this graph good for viewing: i mean no line crossing etc.
So, i guess there must be some tools or even php classes for doing this (maybe for graphviz dot?).
Any help will be great for me!
Well, maybe you could use the PEAR Image_GraphViz class?
Personally, I'd off-load the work of drawing the graph to the browser.
A good Javascript graphing library such as gRaphael can draw the graph using vector graphics (ie SVG), and can look much better than most static images generated by PHP, and can have features which static images can't, such as popups when you roll-over data points.
If you do it this way, all your PHP code has to supply is the graph data.
Hope that helps.
As you've laready hinted at, the quickest and simplest approach is to use graphviz. Given the abstraction provided by the dot language, there's little point in providing a PHP abstraction layer on top of it.
Use google!
http://code.google.com/apis/visualization/documentation/using_overview.html#load_your_libraries
They have great graphs. You just need to present the information in the right matter for google to understand. It's pretty simple.
What's the easyiest way to create a table with Zend_Pdf?
Until now, i realized tables with horizontal and vertical lines. Is there no other solution for tables?
Thank you.
There's this project in SF: http://zendpdftable.sourceforge.net/
However it's still not very practical, compared to other libraries.
I've also found a Zend_Pdf_Helper gitHub project that maybe can help someone.
From what i have read there is no easy way to do this. The closest you will get is by using the shape drawing primitives in the Zend_Pdf API or (probably better) by switching to another PDF library entirely.
XSL:FO combined with FOP handles tables very nicely. The downside is that it is an external too, seems to be slightly dated, and documentation for it is not the greatest. This posting of mine might help: http://grover.open2space.com/content/creating-pdf-code-fop
I'm looking for a good library / API to draw a binary tree using PHP.
I've tried using Image_GraphViz, but it doesn't seem to work. I've also looked at phpsyntaxtree, but its not documented.
Alternatively, I'm also looking for a jQuery plugin that does this. (just not this one because it has no documentation).
Thanks
My suggestion is to go with js, because vector graphs are nicer and you can add interactivity anytime.
Try raphael, a good (and perfectly documented) js graph library
homepage | tree graph demo
I still believe GraphViz is what you need. If you had a problem in using it, just post a question about the problem. It will be better than finding an alternative tool.
I have some source code and I would like to auto generate class diagrams in PHP.
What software can I use to do this?
Duplicate
PHP UML Generator
UML tool for php
Doxygen can do class diagrams, too (if what I'm thinking of are "class diagrams" :) ).
Umbrello can do it.
Hava a look at Instant Reverse
This answer is for people who visits stackoverflow for finding answers to their queries.
http://pear.php.net/package/PHP_UML/
I have not evaluated PHP UML package thoroughly, but It should satisfy the need of small to medium size project.