Editing HTML of report

I’m looking to create a graph/plot of some data that I have collected using a Script Report, but I can’t figure out where to add the code that would allow me to add html/javascript code to plot it. I looked at the Analytics stuff but it wasn’t very helpful.

I know this is fairly complicated, but any suggestions?

Analytics is not a Script Report. it is desk page.

https://github.com/frappe/erpnext/tree/develop/erpnext/selling/page/sales_analytics