From b98dcc132809bb8166541af0925f360abe97f8c3 Mon Sep 17 00:00:00 2001 From: "J. Harshbarger" Date: Tue, 1 Dec 2015 16:40:34 +0900 Subject: [PATCH] Add title to divs --- webtreemap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webtreemap.js b/webtreemap.js index c2e217c..d4296cd 100644 --- a/webtreemap.js +++ b/webtreemap.js @@ -82,6 +82,7 @@ function makeDom(tree, level) { caption.className = 'webtreemap-caption'; caption.innerHTML = tree.name; dom.appendChild(caption); + dom.title = tree.name; tree.dom = dom; return dom;