copied over treemap.php