Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] getDataURL throws TypeError: Cannot read properties of null (reading 'length') #20904

@ZeRego

Description

@ZeRego

Version

5.5.1

Link to Minimal Reproduction

https://jsfiddle.net/sd807pz3/1/

Steps to Reproduce

  1. create a pie chart using "svg" rendered and "outside" labels
  2. call echartsInstance.getDataURL()

Current Behavior

Error TypeError: Cannot read properties of null (reading 'length')

Image Image

Expected Behavior

Get base64 data.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Changing the rendered to "canvas" or the label position to "outside" returns base 64 without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions