PHP draws various statistical graphs

Recently, I am busy with the development of the PHP framework for high-performance and fast website building in the network starry sky. When developing the framework tool (Utils), I wrote a set of PHP programs for drawing various statistical graphs, and I will share it with you.

The current version is 1.0 and will continue to be updated in the future.
Functions supported by this version:
support pie charts, column charts, and line charts;
support two drawing modes, 2D and 3D2.
Currently, the image color used is random.
Supports customization of canvas size, title, font, font size, color, etc. of annotation text.
Support image output and save
File structure
ChartFactory.class.php //Chart generation factory class
IChart.class.php //Statistical chart drawing interface, all types of statistical chart drawing classes need to inherit
PieChart.class.php //Pie shape Diagram drawing class
BrokenChart.class.php //line chart drawing class
SquareChart.class.php //column chart drawing class

Test renderings



3D bar chart



2D bar chart



3D histogram



3D pie chart




Source code download address

http://download.csdn.net/detail/yangjian8801/5266606

Guess you like

Origin blog.csdn.net/yangjian8801/article/details/8812188