0

How can i create a line chart on the nodejs server, and return an image to client?

i see this question and not work for me.

Community
  • 1
  • 1
user3227295
  • 2,168
  • 1
  • 11
  • 17
  • you might also want to delegate the rendering to something else like https://image-charts.com or https://developers.google.com/chart/image/ :) – FGRibreau Jul 14 '19 at 08:00

1 Answers1

1

There are a couple approaches. If it were me, I'd just create a rest JSON service that returned the raw data, then render it with jqplot on the client side.

Edit - If you need to create a PNG, then I might use: npmjs.com/package/nchart

Kevin Seifert
  • 3,494
  • 1
  • 18
  • 14