[Bug] 使用encode取data中不存在的字段时出现意料之外的结果
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
5.4.3
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=area-stack&lang=ts&code=PYBwLglsB2AEC8sDeAoWsA2BTA5l6AJgFzIC-ANGrDgE4THKZYBmYJA5AMwCk75sdHAAs2sdgBZe_AEbAwYYAFsOPPrADGMMAEMI0ADLbpWDCTA0ArllgUqADwCCdiAGcSAbSSwwATxBYOdW0wXGAaHzVZC0JtcIBxbRASZm0MF2tSAF1KdB8nVw8vX38OADdUq3YbbKp0uiw3WHcqdFR0dthobUUAsQBRRV0MPhb24t72DD0sEY70fE0CXq87DmhgNR8yipmbUdsOtrmuno4AVWgoOAcCF1m58Y4p6BmcuYXgJZIVtY3-LbE5QwVgATFVSPsqDV0ARgtp0qIjugXMALDR1L1mnNGOsOABGNRAqwkAAcADoAGwk_hErB4kh4mxvQ6dYAcME0nYMgAMZJBAFZOcC6QymaNWqyVISubBOGTxABOIVWemwRkHOZeXFicTS4UkXmcCnKkVqvYdTJUCGkADcQA
### Steps to Reproduce
1.
``` javascript
option = {
legend: {},
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
xAxis: [{ type: 'category', boundaryGap: false }],
yAxis: [{ type: 'value' }],
series: [
{
name: 'Email',
type: 'line',
encode: { x: 'no', y: 'value' }
},
{
name: 'Union Ads',
type: 'line',
encode: { x: 'no', y: 'value2' }
}
],
dataset: {
source: [
{ no: '1', value: 8.68, value1: 1 },
{ no: '2', value: 10.25, value1: 1 },
{ no: '3', value: 3.49, value1: 1 },
{ no: '4', value: 0.36, value1: 1 }
]
}
};
```
2.

### Current Behavior
使用encode取data在不存在的字段时出现意料之外的结果
Unexpected results occur when using encode to fetch data for fields that do not exist
### Expected Behavior
对应series不展示值
The value of the corresponding series is not displayed
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.