christ
christ

Reputation: 69

How to use echarts in ExpressJS?

I'm finding the way to use Echarts library on my ExpressJS project. It has npm package "echarts", however there is no document on how to use it. I would like to create chart and get it Base64 image.

Thanks

Upvotes: 0

Views: 374

Answers (1)

karthikdivi
karthikdivi

Reputation: 3643

echarts is primarily a client-side library, Do you really want to render your charts at server side? It is not possible out of the box, but you can use headless tools to generate the images.

Look at puppeteer, headless chrome etc.,

Upvotes: 1

Related Questions