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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions