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 06:44:40 UTC

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

fsql opened a new issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822


   ### Version
   4.0.0
   
   ### Steps to reproduce
   在树形图中,想点击节点时通过on("click", clickFun)绑定点击事件,再由ajax加载子节点数据,但是返回的数据只有节点的数据,之前的refresh函数只改节点数据就可以,现在4.x版本中这个函数改为什么了?
   
   ### What is expected?
   ·
   
   ### What is actually happening?
   ·
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645863927


   建议把之前的 option 保留下来,params 里会有 seriesIndex 之类的可以判断出改哪里的数据。


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
fsql commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645873865


   > 建议把之前的 option 保留下来,params 里会有 seriesIndex 之类的可以判断出改哪里的数据。
   
   按照dataIndex修改数据用哪个函数?文档里没找到


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-648716317


   `option.series[0]....` 之类的


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
Ovilia edited a comment on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646438410


   就是直接改你的 option,dataIndex 对应的是系列中的第 dataIndex 个数据。如果需要进一步帮助,可以创建一个在线 demo。


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
fsql commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646449071


   > 就是直接改你的 option,dataIndex 对应的是系列中的第 dataIndex 个数据。如果需要进一步帮助,可以创建一个在线 demo。
   
   https://gallery.echartsjs.com/editor.html?c=xBUPEVpczO&v=1 
   贴上demo了,82行往后的怎么写?


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645818236


   统一由 `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


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

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646438557


   @fsql Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM or https://gallery.echartsjs.com/editor.html.


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646438410


   就是直接改你的 option,dataIndex 对应的是系列中的第 dataIndex 个数据


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
fsql commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-649514941


   > `option.series[0]....` 之类的
   
   @Ovilia 
   怎么获取要插入的数据在option.series[0].data中的具体下标呢?用dataIndex来插入吗?能在demo中写一下吗?


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
fsql edited a comment 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


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

Posted by GitBox <gi...@apache.org>.
fsql commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-648675831


   @Ovilia  可以帮忙解答一下吗?


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
fsql closed issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822


   


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
fsql commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-667000843


   算了,用element自带的tree了虽然丑爆了


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12822:
URL: https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645814089


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
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