highcharts / highcharts/node-export-server

> 50 bubble charts produce corrupt chart SVG

Open
#641 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
369
Forks
266
PR merge metrics
No merged PRs in 30d

Description

### Expected behaviour ###
All 51 bubbles should be displayed without error.

### Actual behaviour ###
The export server produces a corrupt SVG. When opening the file, following error is displayed:
```
error on line 44 at column 7087: Namespace prefix xlink for href on image is not defined
```
If I fix it by adding ` xmlns:xlink="http://www.w3.org/1999/xlink"` to the `svg` tag, the image is displayed without an error. But no bubbles are shown.

### Additional info ###
Base config structure used:
```json
{
"chart": {
"type": "bubble",
"plotBorderWidth": 1,
"zooming": {
"type": "xy"
}
},
"title": {
"text": "Highcharts Bubbles Sizing"
},
"subtitle": {
"text": "Smallest and largest bubbles are equal, intermediate bubbles different."
},
"xAxis": {
"gridLineWidth": 1
},
"yAxis": {
"startOnTick": false,
"endOnTick": false
},
"series": [
{
"data": [
[
5,
5,
5
]
],
"sizeBy": "area",
"name": "Size by area"
},
]
}
```
Command used:
```bash
highcharts-export-server --logToFile false --allowCodeExecution -nologo true -type=svg -outfile /tmp/out.svg -infile /tmp/in.json --logLevel 4
```

### Files used ###
[not_working.json](https://github.com/user-attachments/files/19227391/not_working.json)
![Image](https://github.com/user-attachments/assets/a8417122-1bfa-4915-bfce-8a5eae251a88)
![Image](https://github.com/user-attachments/assets/4bc08ede-be4a-453d-be0a-162823aaee6a)
[working.json](https://github.com/user-attachments/files/19227392/working.json)
![Image](https://github.com/user-attachments/assets/383eed15-bb80-4d2d-853c-fd59494cc1b9)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.