diff --git a/src/main/resources/static/default.html b/src/main/resources/static/default.html index 150b255..1cf5246 100644 --- a/src/main/resources/static/default.html +++ b/src/main/resources/static/default.html @@ -148,6 +148,7 @@ }; var normalPopulationChart = echarts.init(document.getElementById('normalPopulation')); normalPopulationChart.setOption(option); + initSpecialPopulationECharts(); }, function(code, data) { top.dialog.message(data.msg); }); @@ -195,11 +196,11 @@ }; var specialPopulationChart = echarts.init(document.getElementById('specialPopulation')); specialPopulationChart.setOption(option); + initCategoryECharts(); }, function(code, data) { top.dialog.message(data.msg); }); } - initSpecialPopulationECharts(); //男女占比统计图 function initGenderECharts(){ @@ -295,9 +296,6 @@ var specialPopulationChart = echarts.init(document.getElementById('categoryCharts')); specialPopulationChart.setOption(option); } - setTimeout(function(){ - initCategoryECharts(); - },400); });