antvis / antvis/F2

官网图例中的雷达图 去掉data中的数据 页面会有默认的一个item白条

Open
#1,348 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://f2.antv.vision/zh/examples/radar/radar#basic](https://f2.antv.vision/zh/examples/radar/radar#basic)

### Steps to reproduce
进入链接后 删除data数组中的数据 页面会有item的白条数据
![image](https://user-images.githubusercontent.com/67216143/150895657-5ae1c8b5-9de7-434b-a51d-c2d32496e48c.png)

| Environment | Info |
|---|---|
| f2 | 3.8.9 |
| System | - |
| Browser | - |

---
我希望页面为空不渲染任何东西

Contributor guide

Open the contributing guide

Research direction

Open the basic radar example at the provided reproduction link and remove the data array entries as described. Inspect the example and the chart rendering path to determine why an item bar remains when the data is empty. Done means the page renders no item bars or other chart content with an empty data array.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.