Full article with details of how to set this up: https://livefiredev.com/chartjs-image-exports-using-puppeteer-node/
Intro:
In this guide, we will create a web service that takes a Chart JS config and exports that in the form of an image. The idea is that you can use all the incredible power of Chart JS to generate charts. And since what you get back is an image, you can easily use these in a wide variety of places. For example in emails.
In order to generate ChartJS image exports, we will be setting up an Express JS application. This application will use ChartJS along with Puppeteer in order to create the final images.
We will also build in some caching for efficiency. The goal is that, if the application has already generated an image based on a ChartJS config, we will just directly show that image instead of creating a new one each time.
Download
0 formats
No download links available.
ChartJS Image Export Using Express JS & Puppeteer | NatokHD