Skip to content

[Bug] Regression between 5.2.2 and 5.3.0 on custom series #17185

@anymos

Description

@anymos

Version

5.3.0 - 5.3.1 - 5.3.2

Link to Minimal Reproduction

https://codepen.io/m5ak/pen/gOXxBxw

Steps to Reproduce

We render elements within custom series and when we try to remove some item from chart (for example data:[]) then echarts throws next exception: Uncaught TypeError: Cannot read properties of undefined (reading '__ec_inner_26'), in the console
and items are not removed form chart.

Current Behavior

We render elements within custom series and when we try to remove some item from chart (for example data:[]) then echarts throws next exception: Uncaught TypeError: Cannot read properties of undefined (reading '__ec_inner_26'),
and items are not removed form chart. Items are just stacked one to another.

Expected Behavior

Expected is as in previous versions of echarts that element is removed from chart when data item of element is not defined.

Environment

- OS:OSX 12.3.1
- Browser: chrome/firefox/safari
- Framework: none, POJO

Any additional comments?

This is blocking as custom rendering can not be used with the filter:'none' as the same bug appears.

Beside, this is a regression from the 1.3.0 version so better to tackle it now before it have more impact on version build upon the 1.3.0

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