-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmpl.html
40 lines (36 loc) · 1.88 KB
/
tmpl.html
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
34
35
36
37
38
39
40
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/heatmap.js"></script>
<script src="https://code.highcharts.com/modules/treemap.js"></script>
<style type="text/css">
#container {
min-width: 300px;
max-width: 600px;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="container"></div>
<script type="text/javascript">
Highcharts.chart('container', {
colorAxis: {
minColor: '#b8ff77',
maxColor: Highcharts.getOptions().colors[8]
},
series: [{
type: 'treemap',
layoutAlgorithm: 'squarified',
data: [ { "temp": null, "name": "Temp", "value": 0.0725, "colorValue": 0.0725 }, { "temp": null, "name": "Packages", "value": 0.5604, "colorValue": 0.5604 }, { "temp": null, "name": "Cache", "value": 0.1889, "colorValue": 0.1889 }, { "temp": null, "name": "Downloads", "value": 8.7165, "colorValue": 8.7165 }, { "temp": null, "name": "Pictures", "value": 0.3556, "colorValue": 0.3556 }, { "temp": null, "name": "Music", "value": 0.054, "colorValue": 0.054 }, { "temp": null, "name": "Desktop", "value": 0.0001, "colorValue": 0.0001 }, { "temp": null, "name": "Videos", "value": 0.2285, "colorValue": 0.2285 } ]
}],
"title": {
"text": "Folders and directory sizes - (GB)"
}
});
</script>
</body>
</html>