PHP code example of gavinggordon / tablechartbuilder

1. Go to this page and download the library: Download gavinggordon/tablechartbuilder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gavinggordon / tablechartbuilder example snippets

 php
	
 php
	$table = new GGG\Html\Builders\TableChartBuilder();
 php
	$table->configure( [
		'title' => '',
		'headers' => [
			'Q1', 'Q2', 'Q3', 'Q4'
		],
		'data' => [
			[ 10000, 5000, 7500, 5000 ],
			[ 13000, 1600, 2500, 8000 ],
			[ 15000, 7400, 3600, 2500 ]
		],
		'equation' => [
			'total', 'average', 'lowest', 'highest'
		]
	] );
 php
	$html = $table->render();
	echo $html;