if (option && typeof option === "object") {
myChart.setOption(option, true);
window.onresize = myChart.resize;
}