-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.js
36 lines (33 loc) · 971 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var count = 1;
setInterval(function(){
if(count%4 == 1){
treem.treemap({
data : [4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1],
container : ".parentContainer",
side : 700,
unit : "px"
});
} else if(count%4 == 2){
treem.treemap({
data : [40, 3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1],
container : ".parentContainer",
side : 600,
unit : "px"
});
} else if(count%4 == 3){
treem.treemap({
data : [40, 30, 20, 1,1,1,1,1,1,1,1,1,1],
container : ".parentContainer",
side : 500,
unit : "px"
});
} else if(count%4 == 0) {
treem.treemap({
data : [40, 30, 20, 10],
container : ".parentContainer",
side : 400,
unit : "px"
});
}
count++;
}, 1000)