-
Treem.js is a simple treemap library built with javascript.
-
Currently it depends on jQuery to manipulate the DOM.
-
To use this component, just pass an array of percentages (sorted in descending order and summing up to 100), the element selector to which the treemap has to be appended and the size of the treemap.
-
CSS unit can be passed as an input property if needed (Default is px).
treem.treemap({ data : [40, 30, 20, 10], container : ".parentContainer", side : 400 });
-
The treemap will be formed as a square and appended to the element passed.
-
It gives different colour to different blocks inside the treemap and also displays the percentage value on hover
-
Notifications
You must be signed in to change notification settings - Fork 1
Madhavanbabu/treem.js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple treemap with javascript
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published