Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -0
index.html
CHANGED
|
@@ -34,6 +34,9 @@
|
|
| 34 |
|
| 35 |
<script>
|
| 36 |
var chartDom = document.getElementById('main');
|
|
|
|
|
|
|
|
|
|
| 37 |
var myChart = echarts.init(chartDom);
|
| 38 |
// window.addEventListener('resize', function() {
|
| 39 |
// myChart.resize();
|
|
|
|
| 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();
|