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

Doc: provide an usage example of combining fpdf2 with Plotly #653

Closed
Lucas-C opened this issue Dec 29, 2022 · 2 comments · Fixed by #714
Closed

Doc: provide an usage example of combining fpdf2 with Plotly #653

Lucas-C opened this issue Dec 29, 2022 · 2 comments · Fixed by #714

Comments

@Lucas-C
Copy link
Member

Lucas-C commented Dec 29, 2022

We already have a page about Charts & graphs in our documentation, and other ones about combining fpdf2 with other libs.

Plotly is a powerful and well-known charting library that can can produces SVG.
It would be interesting to provide a documentation section on how to generate a chart with Plotly and embed it in fpdf2.

Note that at least one fpdf2 user has been successful in doing so in the past: #526

@ranbir7
Copy link

ranbir7 commented Feb 7, 2023

hey there
How can I contribute to this??
Please give me a detailed guide since I'm very new to this.

@Lucas-C
Copy link
Member Author

Lucas-C commented Feb 7, 2023

Hi and welcome @ranbir7 😊

The first step would be to read the Development guidelines.

Regarding this task, the goal will be to submit a Pull Request:

This PR will be an update of the Markdown file https://github.com/PyFPDF/fpdf2/blob/master/docs/Maths.md.
The idea is to add a new section that explains how insert charts/graphs generated with Plotly into a PDF document produced with fpdf2.

Of course, prior to this Pull Request, you will have to experiment yourself on how to do such thing 😄
This documentation page would be a good starting point: https://plotly.com/python/static-image-export/

Also: No such thing as a stupid question: feel free to ask anything there if things are unclear!

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

Successfully merging a pull request may close this issue.

2 participants