Line chart in erpnext print format using html css js

I am trying to create a line chart using server side content. But javascript is not working in erpnext custom print format. What is the right syntax to use javascript/jquery in print format layout? plz help


If possible could you share the details on what you have tried so far.
Meanwhile, you might check this documentation - Jinja API

In erpnext print format no jquery/js is working but I completed the task using html/css.