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
所以把当前的实例销毁清空,重新实例化,