You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/06/18 07:22:14 UTC

[GitHub] [incubator-echarts] fsql commented on issue #12822: 2.x中的refresh函数在4.x中改成什么了?

fsql commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645831401


   > 统一由 `setOption` 处理了,如果有数据改变,就把改变的数据放在参数里。
   
   `
   myChart.on("click", reloadTree);
   function reloadTree(params)
   {
   	var addData = getTreeData(params.data.uid);
   	if(param.data.children)
   	{
               param.data.children.push(addData);
   	}else{
   			param.data.children = [addData];
   	}
   	
   	
   	myChart.setOption();
   }
   
   function getTreeData(userId)
   {
   	$.ajax(.........);
   	return data;
   }
   `
   params中没有返回其他节点数据,应该怎么写才能定位params在setOption()参数里的位置?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org