This project was bootstrapped with default create react app with typescript.
Typescript is used but NOT required for this example. It is just nice 😊.
This example uses Victory Charts as the chart library. Other chart libraries should work in the same fashion.
In the pdf-create directory:
yarn install
Run the locally built version of the app.
In the pdf-create directory:
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Click the button to download a pdf of the pie chart to your machine.