Help build Graph with nodejs + mongodb + canvas

Hey everyone,

I’m trying to build a graph with home expenses and I’m using nodejs + express + mongodb + handlebars and CanvasJS, but I don’t know how to bring the container of the canvas to my routes and show the graph in my dashboard.

This is what I have in my handlebars

And here is what I have in JS to initialise my graph

Is it possible to use handlebars and nodejs to build this type of app ?