Skip to content

[Bug] No markLine drawn if one of the markLines is empty #21683

Description

@langkamp-aspen

Version

6.1

Link to Minimal Reproduction

https://jsfiddle.net/Lvop3jc7/

Steps to Reproduce

  1. Add a series with markLine and then inside the data of the markLine have one empty object
    markLine: { data: [ { "yAxis": 1 }, {}, { "yAxis": 3 }, ] }

Current Behavior

No markLine is rendered.
There is a error Uncaught TypeError: Cannot read properties of undefined (reading 'coord')

Expected Behavior

The empty markLine is skipped in rendering, but the other marklines are rendered. No error.

Environment

- OS: Windows 11
- Browser: Chrome
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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