js 自适应容器宽高
var echartsWarp= document.getElementById('echartsWarp');
var resizeWorldMapContainer = function ()
{
//用于使chart自适应高度和宽度,通过窗体高宽计算容器高宽
echartsWarp.style.width = window.innerWidth+'px';
echartsWarp.style.height = window.innerHeight+'px';
};
resizeWorldMapContainer ();//设置容器高宽
window.onresize = function ()
{
//用于使chart自适应高度和宽度
resizeWorldMapContainer();//重置容器高宽
myChart.resize();
};