-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhuffman_upper_tree.html
36 lines (24 loc) · 1.51 KB
/
huffman_upper_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="mIEkFMFzPvVT" style="width:900px;height:500px;"></div>
</div>
<script type="text/javascript">
"use strict";
let goecharts_mIEkFMFzPvVT = echarts.init(document.getElementById('mIEkFMFzPvVT'), "white");
let option_mIEkFMFzPvVT = {"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":"11","value":11,"children":[{"name":"A:5","value":5},{"name":"6","value":6,"children":[{"name":"R:2","value":2},{"name":"4","value":4,"children":[{"name":"B:2","value":2},{"name":"2","value":2,"children":[{"name":"C:1","value":1},{"name":"D:1","value":1}]}]}]}]}]}],"title":{"text":"Huffman Tree"},"tooltip":{"show":false}}
;
let action_mIEkFMFzPvVT = {"areas":{},"type":""}
;
goecharts_mIEkFMFzPvVT.setOption(option_mIEkFMFzPvVT);
goecharts_mIEkFMFzPvVT.dispatchAction(action_mIEkFMFzPvVT);
</script>
</body>
</html>