修改图表加载不出来的问题
This commit is contained in:
parent
38a3e8e2b9
commit
09c8ba46b0
@ -148,6 +148,7 @@
|
|||||||
};
|
};
|
||||||
var normalPopulationChart = echarts.init(document.getElementById('normalPopulation'));
|
var normalPopulationChart = echarts.init(document.getElementById('normalPopulation'));
|
||||||
normalPopulationChart.setOption(option);
|
normalPopulationChart.setOption(option);
|
||||||
|
initSpecialPopulationECharts();
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.message(data.msg);
|
top.dialog.message(data.msg);
|
||||||
});
|
});
|
||||||
@ -195,11 +196,11 @@
|
|||||||
};
|
};
|
||||||
var specialPopulationChart = echarts.init(document.getElementById('specialPopulation'));
|
var specialPopulationChart = echarts.init(document.getElementById('specialPopulation'));
|
||||||
specialPopulationChart.setOption(option);
|
specialPopulationChart.setOption(option);
|
||||||
|
initCategoryECharts();
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.message(data.msg);
|
top.dialog.message(data.msg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
initSpecialPopulationECharts();
|
|
||||||
|
|
||||||
//男女占比统计图
|
//男女占比统计图
|
||||||
function initGenderECharts(){
|
function initGenderECharts(){
|
||||||
@ -295,9 +296,6 @@
|
|||||||
var specialPopulationChart = echarts.init(document.getElementById('categoryCharts'));
|
var specialPopulationChart = echarts.init(document.getElementById('categoryCharts'));
|
||||||
specialPopulationChart.setOption(option);
|
specialPopulationChart.setOption(option);
|
||||||
}
|
}
|
||||||
setTimeout(function(){
|
|
||||||
initCategoryECharts();
|
|
||||||
},400);
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user