I am using 'recharts' to create graphs for my project, and 'react-pdf' for generating a report. 'Recharts' creates a svg on the DOM when using it and a graph is displayed.
Is there a way I can use these two together, and add my 'recharts' component to my report via react-pdf?
for example - inside a <Document/>
tag.
I have seen a solution which offers to convert the rechart's svg to a png, save it locally and then import it and use via <Image/>
component in react-pdf.
Looking for a more straightforward approach to this issue.