With this simple code you will generate the most simplest line graph: $graph->title("Simple Plot graph with line") // Set the title of the bar. To see how to echo graph, see output_gd_png_base64() method. This method prepare a serie of values in LINES format. ![]() $graph->plot( $array_values, $arr_values_y_param = null, $cfg = null ) $graph->title("With X & Y Values") // Set the title of the bar. With this simple code you will generate the most simplest graph:Įxample with x & y values: $graph = new graph() If not given, each $array_values will be the Axys Y values and each value will be an index position in Axis X automaticallyĮcho 'output_gd_png_base64( ).'" >' // Echo img raw data in html page ![]() This method prepare a serie of values in BAR format. $graph->bar( $array_values, $arr_values_y_param = null, $cfg = null ) 'fontfamilypath' => 'dejavu-fonts-ttf-2.37/ttf', Tested on basic PHP installation require_once( '' ) īefore draw the Graph, first we need to prepare values inside (as type bar, lines, etc.) RESUME OF METHODS: Requires for Instagram background effects: Ī lot of easy :smiley. It is not required for by most methods, but in some, like reading pdf or psd, you will need it. img2img class: If you need to use IMG_FILTER_SCATTER you need at least PHP >= PHP7.4.0. # SERVER REQUERIMENTS: - PHP with GD enabled: sudo apt install php-gd PHP Version 8.0.11 (Production Server) 512Mb Memory Limit Red Hat Enterprise Linux release 8.4 (Ootpa). Red Hat Enterprise Linux Server release 6.10 (Santiago) PHP Version 7.3.25 (Production Server) 512Mb Memory Limit VirtualBox Ubuntu Server 20.04.2 LTS (Focal Fossa) with PHP7.4.3 Tested on: - Simple Raspberry pi (B +ĕ12MBė00 MHz ARM11) with Raspbian Lite PHP7.3 (i love this gadgets) :heart_eyes: A minimum (minimum, minimum, minimum requeriments is needed). You can create graphs charts with bars, graphs lines with marks, graphs with background images, histograms. ![]() Graph charts, graph bars, histograms, graph lines, scratter, marks V 1.0.1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |