Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shaiarmis opened this issue Oct 15, 2024 · 1 comment

Comments

@shaiarmis
Copy link

shaiarmis commented Oct 15, 2024

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

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

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}'
@shaiarmis shaiarmis changed the title Data labels are not visible on a packagebubble chart when exporting PNG or JPEG Data labels are not visible on a packedbubble chart when exporting PNG or JPEG Oct 15, 2024
@jszuminski
Copy link
Contributor

Thanks for reporting! I've added it to our backlog.

Internal note: works via exporting module by SVG (https://jsfiddle.net/nwqehgyz/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants