ZoeDuan commited on
Commit
38b3411
1 Parent(s): db54056

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +7 -7
index.html CHANGED
@@ -8,7 +8,7 @@
8
  <script src="https://cdn.jsdelivr.net/npm/echarts@latest/dist/echarts.min.js"></script>
9
  <!-- Include jQuery library -->
10
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
11
- <style>
12
  /* Make the chart responsive */
13
  #main {
14
  width: 100%;
@@ -25,8 +25,8 @@
25
  #main {
26
  transform: scale(0.6);
27
  }
28
- }
29
- </style>
30
  </head>
31
  <body>
32
  <!-- Placeholder for the chart -->
@@ -34,9 +34,9 @@
34
 
35
  <script>
36
  var chartDom = document.getElementById('main');
37
- if (myChart){
38
- myChart.dispose()
39
- }
40
  var myChart = echarts.init(chartDom);
41
  // window.addEventListener('resize', function() {
42
  // myChart.resize();
@@ -64,7 +64,7 @@
64
  functionNodes.forEach((node, index) => {
65
  node.x = Math.cos(2 * Math.PI * index / functionNodes.length) * 400;
66
  node.y = Math.sin(2 * Math.PI * index / functionNodes.length) * 400;
67
- node.symbolSize = 126;
68
  node.itemStyle = { color: functionColors[node.name] };
69
  var verticalPadding = node.y / 2 ;
70
  var paddingRight = node.y >= 0 ? node.symbolSize : 0-node.symbolSize;
 
8
  <script src="https://cdn.jsdelivr.net/npm/echarts@latest/dist/echarts.min.js"></script>
9
  <!-- Include jQuery library -->
10
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
11
+ <!-- <style>
12
  /* Make the chart responsive */
13
  #main {
14
  width: 100%;
 
25
  #main {
26
  transform: scale(0.6);
27
  }
28
+ } -->
29
+ <!-- </style> -->
30
  </head>
31
  <body>
32
  <!-- Placeholder for the chart -->
 
34
 
35
  <script>
36
  var chartDom = document.getElementById('main');
37
+ // if (myChart){
38
+ // myChart.dispose()
39
+ // }
40
  var myChart = echarts.init(chartDom);
41
  // window.addEventListener('resize', function() {
42
  // myChart.resize();
 
64
  functionNodes.forEach((node, index) => {
65
  node.x = Math.cos(2 * Math.PI * index / functionNodes.length) * 400;
66
  node.y = Math.sin(2 * Math.PI * index / functionNodes.length) * 400;
67
+ node.symbolSize = 125;
68
  node.itemStyle = { color: functionColors[node.name] };
69
  var verticalPadding = node.y / 2 ;
70
  var paddingRight = node.y >= 0 ? node.symbolSize : 0-node.symbolSize;