apache / apache/echarts

[Bug] null value for radar series

Open
#20,811 10 comments 1 reaction 0 assignees View on GitHub
bug topic: radar
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.2.2

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-simple

### Steps to Reproduce

option = {
radar: {
// shape: 'circle',
indicator: [
{ name: 'Sales', max: 400 },
{ name: 'Administration', max: 400 },
{ name: 'Information Technology', max: 400 },
{ name: 'Customer Support', max: 400 },
{ name: 'Development', max: 400 },
{ name: 'Marketing', max: 400 }
]
},
series: [
{
type: 'radar',
data: [
{value: [150, undefined , 224, null, 135, 50]}
]
}
]
};

![Image](https://github.com/user-attachments/assets/01ec9f9f-8187-4eb6-925a-7d51ec3fdcf4)

### Current Behavior

null,undefined当成了0来处理。

### Expected Behavior

null,undefined直接按空值来处理,连线断开

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.