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 2022/08/20 08:09:55 UTC
[GitHub] [echarts] jingyuLin1999 opened a new issue, #17534: line3D 动态添加数据坐标轴会闪动
jingyuLin1999 opened a new issue, #17534:
URL: https://github.com/apache/echarts/issues/17534
### Version
^5.3.3
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
1、[用官方例子](https://echarts.apache.org/examples/zh/editor.html?c=line3d-orthographic&gl=1)
2、动态添加数据
```js
setInterval(() => {
this.options.series[0].data.push([Math.random()*11.3,Math.random()*10.3, Math.random()*15.3])
this.chart.setOption(this.options, true);
}, 10);
```
### Current Behavior
x,y,z坐标轴会闪动
### Expected Behavior
希望line3d能支持[appendData](https://echarts.apache.org/zh/api.html#echartsInstance.appendData)仅更新数据。而不是通过 this.chart.setOption(this.options, true);整个重绘
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
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
Re: [I] line3D 动态添加数据坐标轴会闪动且会卡顿 [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #17534: line3D 动态添加数据坐标轴会闪动且会卡顿
URL: https://github.com/apache/echarts/issues/17534
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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] [echarts] echarts-bot[bot] commented on issue #17534: line3D 动态添加数据坐标轴会闪动
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17534:
URL: https://github.com/apache/echarts/issues/17534#issuecomment-1221255439
@jingyuLin1999 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
line3D dynamically added data axis will flash
**BODY**
### Version
^5.3.3
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
1. [Using official examples](https://echarts.apache.org/examples/zh/editor.html?c=line3d-orthographic&gl=1)
2. Dynamically add data
````js
setInterval(() => {
this.options.series[0].data.push([Math.random()*11.3,Math.random()*10.3, Math.random()*15.3])
this.chart.setOption(this.options, true);
}, 10);
````
### Current Behavior
The x,y,z axes will flicker
### Expected Behavior
Hopefully line3d will support [appendData](https://echarts.apache.org/zh/api.html#echartsInstance.appendData) to only update data. instead of passing the whole redraw via this.chart.setOption(this.options, true);
### Environment
````markdown
- OS:
- Browser:
- Framework:
````
### Any additional comments?
_No response_
</details>
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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] [echarts] helgasoft commented on issue #17534: line3D 动态添加数据坐标轴会闪动且会卡顿
Posted by GitBox <gi...@apache.org>.
helgasoft commented on issue #17534:
URL: https://github.com/apache/echarts/issues/17534#issuecomment-1229255879
True - the axes will flicker. And true - [appendData](https://echarts.apache.org/en/api.html#echartsInstance.appendData) is not officially supported for _line3D_.
But one can somewhat remedy the problem.
First - by not explicitly redraw the chart with ```setOption(option, true);``` - **true** means redraw/replace.
Second - by setting **max** values to axes
Third - by decreasing the frequency
(Fourth - upgrade computer to faster one)
Update [the example](https://echarts.apache.org/examples/en/editor.html?c=line3d-orthographic&gl=1) with following code
```
xAxis3D: { type: 'value', max:12 },
yAxis3D: { type: 'value', max:12 },
zAxis3D: { type: 'value', max:30 },
setInterval(() => {
option.series[0].data.push([Math.random()*11.3,Math.random()*10.3, Math.random()*15.3])
myChart.setOption(option); //, true);
}, 800);
```
and flicker will disappear when tested on Intel i5 processor.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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
Re: [I] line3D 动态添加数据坐标轴会闪动且会卡顿 [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17534:
URL: https://github.com/apache/echarts/issues/17534#issuecomment-2311094096
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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
Re: [I] line3D 动态添加数据坐标轴会闪动且会卡顿 [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17534:
URL: https://github.com/apache/echarts/issues/17534#issuecomment-2325300016
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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