diff --git a/methode2/mondrian/draw.php b/methode2/mondrian/draw.php index 8eb7033..ff70095 100644 --- a/methode2/mondrian/draw.php +++ b/methode2/mondrian/draw.php @@ -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();