Skip to content

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

@OVillani

Description

@OVillani

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    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