|
|
|
@ -35,6 +35,9 @@ function DrawBlock($the_block, $vImage, $parametres) |
|
|
|
|
|
|
|
$data = blockchain::getTransactionData($the_block, $type);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Limiter à 42 rectangles
|
|
|
|
*/
|
|
|
|
usort($data, 'tri');
|
|
|
|
|
|
|
|
$n=0;
|
|
|
|
@ -46,6 +49,11 @@ function DrawBlock($the_block, $vImage, $parametres) |
|
|
|
$data[] = ["hash" => "0000000000000000000000000000000000000000000000000000000000000000", "value" => $n];
|
|
|
|
|
|
|
|
usort($data, 'tri');
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO : Faire une classification automatique
|
|
|
|
* C'est à dire classer toutes les transactions en 42 classes
|
|
|
|
*/
|
|
|
|
|
|
|
|
$treemap = new Treemap($data, $width, $height);
|
|
|
|
$map = $treemap->getMap();
|
|
|
|
|