GitHub - evmar/webtreemap: web-based treemap (original) (raw)
webtreemap
New 2017-Oct-16: master is now webtreemap v2, a complete rewrite with bug fixes, more features, and a different (simpler) API. If you're looking for the old webtreemap, see the v1 branch.
A simple treemap implementation using web technologies (DOM nodes, CSS styling and transitions) rather than a big canvas/svg/plugin. It's usable as a library as part of a larger web app, but it also includes a command-line app that dumps a self-contained HTML file that displays a map.
Play with a demo.
Usage
Web
The data format is a tree of Node
, where each node is an object in the shape described at the top of tree.ts.