Datasets:
File size: 922 Bytes
45721da | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | myChart.setOption({}) 时 lines.data 丢失
### Version
4.8.0
### Steps to reproduce
myChart.setOption({}) 时, lines类型的线数据会丢失, 其他类型的数据(如line)依然存在.
这个方法的行为是不是应该统一?
https://gallery.echartsjs.com/editor.html?c=xeqTwJtMgx&v=1
- before:

- after:

### What is expected?
myChart.setOption({}) 要么数据全丢, 要么全保留
### What is actually happening?
lines类型的线数据丢失
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
## Relevant pre-fix discussion
### Issue #12836
#### Comment at 2020-06-22T14:58:12Z
@myshzzx
代码,在本地运行,如图所示,可以显示lines类型的线数据

 |