Getting JavaScript to work. in JavaScript Posted October 31, 2021 My problem is I am trying to improve the performance of a script which displays a graph in an html camvas. I want to embed the script in an external file and call it by an event in the html on the page that displays the graph. The html file aggregate1.html woorks correctly and displays the graph ( chart1015.png ) on a canvas sized to suit the screen size you are using. The script file (canvas.js) is my attempt to externalise the JavaScript. Every time I try to call this script, as in example aggregate-new.html I get an error saying that script canvas is not defined. How do I correct my error? aggregate1.html canvas.js aggregate1-new.html
Getting JavaScript to work.
in JavaScript
Posted
My problem is I am trying to improve the performance of a script which displays a graph in an html camvas.
I want to embed the script in an external file and call it by an event in the html on the page that displays the graph.
The html file aggregate1.html woorks correctly and displays the graph ( chart1015.png ) on a canvas sized to suit the screen size you are using.
The script file (canvas.js) is my attempt to externalise the JavaScript.
Every time I try to call this script, as in example aggregate-new.html I get an error saying that script canvas is not defined.
How do I correct my error?
aggregate1.html canvas.js aggregate1-new.html