apache / apache/echarts

[Bug] SVG image not displayed inside canvas with Firefox

Open
#16,624 3 comments 2 reactions 0 assignees View on GitHub
bug en pending waiting-for: community
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.1.2

### Link to Minimal Reproduction

_No response_

### Steps to Reproduce

Create a chart with data as follow:

{
"value": 28,
"originalValue": 528,
"label": {
"show": true,
"width": 25,
"height": 25,
"color": "transparent",
"backgroundColor": {
"image": "data:image/svg+xml;utf8,"
}
}
}

The SVG inside backgroundColor -> image is not displayed on firefox whereas it works well on chrome.

If we configur SVG mode instead of canvas mode it also works.

### Current Behavior

SVG is missing in firefox

### Expected Behavior

SVG should be visible

### Environment

```markdown
- OS: ALL
- Browser: Firefox
- Framework: angular
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.