修改图表加载不出来的问题

This commit is contained in:
wans 2020-12-18 11:23:16 +08:00
parent 38a3e8e2b9
commit 09c8ba46b0

View File

@ -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);
});
</script>
</body>