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

Ticks styling is gone when exporting #636

Open
SharonGrossman opened this issue Feb 28, 2024 · 4 comments
Open

Ticks styling is gone when exporting #636

SharonGrossman opened this issue Feb 28, 2024 · 4 comments

Comments

@SharonGrossman
Copy link

SharonGrossman commented Feb 28, 2024

Hey, thanks for the great package, one thing I noticed is when exporting the graph to JPEG (or PNG for that matter), the formatting i've done to the ticks is gone (mainly what's bothering me is the font-family)

Exported:
image

Original:
image

Do you think there's a quick way to fix this?
thanks!

@ionpetro
Copy link

I have the same issue, any updates on this?

@brammitch
Copy link
Owner

Would you be able to provide a reproduction I could use to troubleshoot?

@ashwanijha1996
Copy link

ashwanijha1996 commented Sep 4, 2024

Hii @brammitch I am facing the same issue in my app.It was working fine before.Looks like something has changed in this library.

@brammitch
Copy link
Owner

I still have not been able to reproduce this problem.

The latest recharts-to-png-demo at https://recharts-to-png.netlify.app/, as well as the examples in this repo, now use "Fire Sans" as the font. My testing show far has shown no difference between what's on the screen and the downloaded images.

I'd still be happy to dig into this some more if someone can provide a Code Sandbox or some other reproducible example.

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

4 participants