Skip to content

[Bug] version 5.4.1, legendModel.js throw an error with can not read properties of undefined (reading 'name') #18682

@lengyuxian

Description

@lengyuxian

Version

5.4.1

Link to Minimal Reproduction

https://github.com/apache/echarts/pull/17510/commits

Steps to Reproduce

1、init the chart
2、options with no name attr
3、throw an error

Current Behavior

throw an error and the chart can not shown

Expected Behavior

no error and can adapt previos version

Environment

- OS:
- Browser:chorme 113.0.5672.127(正式版本) (64 位)
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in Englishmissing-demoThe author should provide a demo.pendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.waiting-for: author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions