Skip to content

[Bug] pie 的 data 数据都为 0 时,百分比为 undefined #17787

@SaberA1ter

Description

@SaberA1ter

Version

5.4.0

Link to Minimal Reproduction

https://codesandbox.io/s/clever-proskuriakova-0x5os5?file=/src/App.js

Steps to Reproduce

只需要使 data 数据皆为 0 并显示百分比即可

Current Behavior

显示为 {d} 或者 ({ percent }) 都为 undefined

Expected Behavior

在 5.3.3 版本中,如果数据都为 0 的情况下则应该显示为 0%

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions