Graphics for Node.js

Asked

Viewed 793 times

1

I am developing a program in Node.js that generates reports in . pdf, with tables and graphs. I’ve been searching the internet and found several packages to generate these graphics, such as: D3.js and its variations.

But I still have one question! They all use a web page in their examples, and my application runs only to generate the final product "report.pdf", what I would like to know is, if you have how to generate graphics within the Node (server-side), and export an image. png or . jpg?

If possible I would like to know, how this happens in the code, since, you will not use the "tags" of html, that many modules need to access to display the chart on the page?

1 answer

0


After a brief search, here are some options I found (they all export the graphics generated on server-side to pdf directly):

Anychart

pdfmake

Chartjs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.