PHP code example of rabbl / heatmap

1. Go to this page and download the library: Download rabbl/heatmap 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/ */

    

rabbl / heatmap example snippets


$heatMap = new HeatMap();
$heatMap->setData(array(
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9],
    [0,1,2,3,5,6,7,8,9]
));
$heatMap->setSpectrum('blue', 'green', 'yellow', 'red');
$fileName = $heatMap->createWithAbsoluteLimits($data, 0, 9);