You must be logged in to post your query.
Home › Forums › Chart Support › Running in node.js
Tagged: node.js
We are looking to use this library to make charts on our site and also output them for static deliverables to customers with a consistent look and feel. To that end, I am attempting to run CanvasJS on the server using node.js. So far, I’m not having a great deal of luck. Has this been attempted by others, and if so do they have some setup code they could share?
Any updates on this?
@stajics,
Please take a look at this sample project on integrating CanvasJS with NodeJS on one-drive.
Also take a look at this tutorial on NodeJS File System Module, which might be of help.
__ Priyanka M S Team CanvasJS
Hi The Sample implementation of CanvasJS on Node.js is no longer available @Priyanka M S or anyone please share.
@bjndugga,
The link shared seems to be working fine. Here is the download link for your reference: https://1drv.ms/u/s!Am6ZJqYg9ZmfgglW57iRB6azpcX_
— Vishwas R Team CanvasJS
this is not a correct solution
what this example does is to serve an html file from node, then run canvasjs in the browser
what the user was actually requesting was to run canvasjs in node, so that they could produce images as static assets, and not have js run in the browser at all
@johnhaugeland,
CanvasJS is a JavaScript library that render charts on the client-side. To capture image of chart on server-side, you will have to run it in a headless browser & capture screenshot. Please take a look at this sample project which uses puppeteer to do so.
You must be logged in to reply to this topic. Login/Register