Home Forums Chart Support Running in node.js

Running in node.js

Viewing 7 posts - 1 through 7 (of 7 total)
  • #10083

    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?

    #22464

    Any updates on this?

    #22467

    @stajics,

    Please take a look at this sample project on integrating CanvasJS with NodeJS on one-drive.

    Basic Column Chart in Node JS

    Also take a look at this tutorial on NodeJS File System Module, which might be of help.

    __
    Priyanka M S
    Team CanvasJS

    #23781

    Hi The Sample implementation of CanvasJS on Node.js is no longer available @Priyanka M S or anyone please share.

    #23790

    @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

    #36369

    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

    #36395

    @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.


    Vishwas R
    Team CanvasJS

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.