Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Script error in line charts when endLabels are shown for a data series containing nulls #18839

Closed
OVillani opened this issue Jul 3, 2023 · 0 comments · Fixed by #18841
Labels
bug en This issue is in English topic: label

Comments

@OVillani
Copy link

OVillani commented Jul 3, 2023

Version

5.4.2

Link to Minimal Reproduction

https://jsfiddle.net/ovillani/Lwmzoepk/1/

Steps to Reproduce

  1. create a line chart with one ore more series of data
    1.1. set all datapoints of one series to null
    2. set option series > endLabel > show to true

Current Behavior

A script error occurs, saying "Uncaught (in promise) TypeError: aL(...).setLabelText is not a function"
Using dataZoom, this error is raised every time the null data are within the actual visible zoom frame - even when there are given datapoints !== null outside the visible range

Expected Behavior

prevent end-label output if no data available

Environment

- OS: win 10,11; Linux Mint; macOS
- Browser: Firefox, Chrome, Edge, Opera, Safari
- Framework: none

Any additional comments?

No response

@OVillani OVillani added the bug label Jul 3, 2023
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jul 3, 2023
@Ovilia Ovilia added topic: label and removed pending We are not sure about whether this is a bug/new feature. labels Jul 4, 2023
@plainheart plainheart linked a pull request Jul 4, 2023 that will close this issue
8 tasks
Ovilia added a commit that referenced this issue Jul 5, 2023
fix(endLabel): endLabel fail with null data #18839
Daviddddd777 added a commit to KravRepo/interface that referenced this issue Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English topic: label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants