highcharts / highcharts/node-export-server

Data labels are not visible on a packedbubble chart when exporting PNG or JPEG

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

Description

# Expected behaviour
Data labels to be clearly visible on the bubbles

# Actual behaviour
Data labels are invisible

# Reproduction steps
Send the following chart config:
```
{
"chart": {
"type": "packedbubble"
},
"plotOptions": {
"packedbubble": {
"dataLabels": {
"enabled": true
}
}
},
"series": [
{
"data": [
1,
2,
3
]
}
]
}
```

## When exporting a SVG or PDF, the labels are shown correctly:
![Screenshot 2024-10-15 at 09 38 41](https://github.com/user-attachments/assets/e195fe5a-1158-476e-9cc7-cc5923ac662f)
```
curl 'http://localhost:7801/' \
--data-raw '{"infile":"{\n \"chart\": {\n \"type\": \"packedbubble\"\n },\n \"exporting\": {\n \"allowHTML\": true\n },\n \"plotOptions\": {\n \"packedbubble\": {\n \"dataLabels\": {\n \"enabled\": true\n }\n }\n },\n \"series\": [\n {\n \"data\": [\n 1,\n 2,\n 3\n ]\n }\n ]\n}\n","width":false,"scale":"2","constr":"chart","type":"image/png","b64":true}'
```
## But when exporting to PNG or to JPEG:
![Screenshot 2024-10-15 at 09 38 32](https://github.com/user-attachments/assets/50e236cd-6211-4fe3-be73-a771056b3257)
```
curl 'http://localhost:7801/' \
--data-raw '{"infile":"{\n \"chart\": {\n \"type\": \"packedbubble\"\n },\n \"exporting\": {\n \"allowHTML\": true\n },\n \"plotOptions\": {\n \"packedbubble\": {\n \"dataLabels\": {\n \"enabled\": true\n }\n }\n },\n \"series\": [\n {\n \"data\": [\n 1,\n 2,\n 3\n ]\n }\n ]\n}\n","width":false,"scale":"2","constr":"chart","type":"image/svg+xml","b64":true}'
```

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.