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

[Bug]: Exported PNG/JPG images have border cropped #1894

Open
1 of 6 tasks
chrisdudley opened this issue Sep 17, 2024 · 0 comments
Open
1 of 6 tasks

[Bug]: Exported PNG/JPG images have border cropped #1894

chrisdudley opened this issue Sep 17, 2024 · 0 comments

Comments

@chrisdudley
Copy link

Relevant package(s)

  • @carbon/charts
  • @carbon/charts-svelte
  • @carbon/charts-react
  • @carbon/charts-angular
  • @carbon/charts-vue
  • Documentation website

Carbon Charts Version

1.21.3

Which bundler are you using?

Webpack

What happened and what did you expect to happen?

When exporting a chart as PNG or JPG the whitespace around the chart is removed so the chart looks cropped.
There is whitespace around the chart when displayed on screen, but it doesnt seem to be included in the image export.

This can be reproduced on the carbon charts website itself, e.g. go to https://charts.carbondesignsystem.com/line and click Export PNG on one of the charts there.

Compare this exported file:
myChart (2)

With a screenshot of how it looks on screen:
image

Chart data and options (automatically formatted so no need for backticks)

No response

JavaScript console or build output (if relevant)

No response

StackBlitz repro

No response

IBM Application/Team (if relevant)

API Connect

What priority level would this be in your opinion?

P3 (Low)

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

No branches or pull requests

1 participant