We use this awesome library to render the graphs: https://www.tremor.so/
I’ve used a similar service before to generate graphs on the fly in order to use them inside PDF. It made prototyping quick and easy