Open Mirko-Tebaldi opened 1 year ago
Our team is looking for a way to generate ChartJs on server-side. Our need is either
Is there an example about how to save image to disk?
The src/example.ts gives an example of saving a chartJs image to disk using .renderToBuffer(), then fs.writeFile().
src/example.ts
.renderToBuffer()
fs.writeFile()
You can also generate a data url via the .renderToDataURL() function
.renderToDataURL()
Our team is looking for a way to generate ChartJs on server-side. Our need is either
Is there an example about how to save image to disk?