When we think of Open Source Software, the first software which comes into mind under web category is PHP. We have solution for most of the common issues like Contant Management, Customer relationship management, Project Management etc…
Many companies completely depend on PHP opensource tools. PHP make us to think why we need to Ã¢‚¬Å“reinvent the wheelÃ¢‚¬. I am listing out the list of open source softwares which are very useful.
I have developed a graphical solution for our prestigious client. Graphical solution includes generating Bar chart, Pie chart, line chart, Stacked bar chart, Multiple bar chart. I have done a simple search to get the list of open source applications which is available in market to provide the Chart solution.
I have got a list of opensource PHP Charts
3. Open Flash Chart
We had chosen JPGraph since it has most of the chart types. But on the next day, I got to know its not completely open source, for commercial purpose we need to get license.
I started searching for some solution which is provided by PHP.
I got a fantastic PEAR package, “Image_Graph”.
PHP professionals knows what is PEAR (PHP Extension and Application Repository). Its is a framework and distribution system for reusable PHP components.
We can handle most of the charts using Image_Graph. Some of them are
Bar Chart, Pie Chart, Line Chart, Donut Chart, Step Chart, Logarithmic Charts, Area Chart, CandleStick Chart, rador Chart, Impulse Chart, Dot Chart, Band Chart and BoxWhisker charts with stacked and gradient effects. Its a cool package.
1. Download Image_Graph Package
2. Unzip the package
3. Move the unzipped folder to the web root of your Apache [either www / htdocs].
4. You can access the examples using url : http://localhost/Image_Graph/docs/examples/
By exploring the examples, you will get to know the various way of implementation. Its very simple if you know the basics of PHP.
Issues Which I faced during production upload:
The problems which I faced are
1. Missing of Fonts:
I got a warning like “Warning: imagettfbbox(): Could not find/open font in /usr/share/php/Image/Canvas/GD.php on line 1245”
This occurs if you don’t have the correct (or any) fonts in your Fonts directory, found at php/Image/Canvas/Fonts/. Make sure that you have the corresponding .ttf file located in your Fonts directory
I searched for solutions. Finally the issue is with Image_Graph PEAR Package. They have included 2 lines which caused the problem. I didn’t analyse the functioanlity of the 2 lines. But the solution is simple, comment that two lines in the installed package.
1. You need to find the PEAR package’s include path.
2. By checking the phpinfo using method [phpinfo( )], you can get the path “include_path“
3. In file /usr/share/php/Image/Graph/Plot/Pie.php, comment the following lines Line 502: // $this->_clip(true);
Line 616: // $this->_clip(false);
I hope this will defenitely help peoples who is going for “Image_Graph” PEAR Package. Enjoy coding