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]: The canvas created in headless mode looks distorted #1204

Open
1 task done
llittlefoxx opened this issue Dec 1, 2023 · 0 comments
Open
1 task done

[Bug]: The canvas created in headless mode looks distorted #1204

llittlefoxx opened this issue Dec 1, 2023 · 0 comments
Labels

Comments

@llittlefoxx
Copy link

llittlefoxx commented Dec 1, 2023

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Current behavior:
The canvas generated by the library works as it's supposed to in the normal browser.
image

However, in the headless mode of the browser triggered by the E2E tests, a screenshot of the canvas shows that its distorted.
image

Expected behavior:
The canvas is rendered in headless mode similarly to the normal browser mode

Reproduction

Create a canvas, take a screenshot of it with cypress in an E2E test while running it in headless mode with the browser of your choice

chart.js version

3.5.0

react-chartjs-2 version

4.3.1

Possible solution

No response

@llittlefoxx llittlefoxx added the bug label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant