var instanceId = document.getElementById(option.echartId).getAttribute('_echarts3_instance_');
if (instanceId) {
var myInstance = option.echarts3.getInstanceById(instanceId)
if (myInstance) {
myInstance.clear()
myInstance.dispose();
}
}
var myChartp = option.echarts3.init(document.getElementById(option.echartId));
myChartp.setOption(optionset,true);
緣由:被實例化過一次以後,不會從新渲染當前的實例div
因此把當前的實例銷燬清空,從新實例化,