Hi, What is the best way to create a graph using data I collect. A basic graph date against votes. I want it to be custom. I work with PHP and Javascript. Graph will be built from database information. Any ideas?
Browse www.planetsourcecode.com or www.sourceforge.net to find related scripts. I know there are a few in there but I don't have the direct link.
I prefer to do some charts with Dojo if there's a need of cheap yet good Javascript solution (that is a refurbished Plotkit, basically), and it's easy enough to create derivative works. dojocampus.org/explorer/#Dojox_Charting Also if you dare, you can write a small SVG/VML/JScript(Canvas) cross-platform tookit by yourself and render all your pages via SVG. Also, for static charts there's nothing better but to draw the chart at server's side once it's required, don't forget it... *sceptically thinks on GD and gradients rendering*
You will need to use PHP's GD library(image functions). You may need to learn the following functions atleast: 1. imagecreate() 2. imagefilledrectangle() for bar diagrams or imageline() for linked points or imagepolygon() for polygon! 3. imagejpeg() or imagepng() [or some other function to output image] 4. imagedestroy() How you use them is upto you!