-
Notifications
You must be signed in to change notification settings - Fork 0
/
huffman_upper_shifted_tree.html
36 lines (24 loc) · 1.57 KB
/
huffman_upper_shifted_tree.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Awesome go-echarts</title>
<script src="https://go-echarts.github.io/go-echarts-assets/assets/echarts.min.js"></script>
</head>
<body>
<style> .container {display: flex;justify-content: center;align-items: center;} .item {margin: auto;} </style>
<div class="container">
<div class="item" id="pHkdZavIFmME" style="width:900px;height:500px;"></div>
</div>
<script type="text/javascript">
"use strict";
let goecharts_pHkdZavIFmME = echarts.init(document.getElementById('pHkdZavIFmME'), "white");
let option_pHkdZavIFmME = {"animation":true,"color":["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],"legend":{"show":true,"type":""},"series":[{"name":"tree","type":"tree","smooth":false,"connectNulls":false,"showSymbol":false,"waveAnimation":false,"initialTreeDepth":4,"leaves":null,"renderLabelForZeroData":false,"selectedMode":false,"animation":false,"data":[{"name":"12","value":12,"children":[{"name":"a:5","value":5},{"name":"7","value":7,"children":[{"name":"3","value":3,"children":[{"name":"d:1","value":1},{"name":"2","value":2,"children":[{"name":"↑:1","value":1},{"name":"c:1","value":1}]}]},{"name":"4","value":4,"children":[{"name":"r:2","value":2},{"name":"b:2","value":2}]}]}]}]}],"title":{"text":"Huffman Tree"},"tooltip":{"show":false}}
;
let action_pHkdZavIFmME = {"areas":{},"type":""}
;
goecharts_pHkdZavIFmME.setOption(option_pHkdZavIFmME);
goecharts_pHkdZavIFmME.dispatchAction(action_pHkdZavIFmME);
</script>
</body>
</html>