I'm trying to insert a chart with Chart.js into an ASP page (not ASP.NET). I saw some tutorials from Chart.js itself and found the following statement:
You can download the latest version of Chart.js from the GitHub releases.
[...]
Chart.js can be installed via npm or bower.
For npm:
npm install chart.js --save
[...]
Chart.js can be integrated with plain JavaScript or with different module loaders. The example in below show how to load Chart.js in Script mode.
<script src="path/to/chartjs/dist/Chart.js"></script>
.
So I interpreted that in " src
" I need to put the path of the Chart.js file that I downloaded. So I pasted this file into the Library
folder of my project. The file I want to insert a graphic into is the grafico_diario.asp
, contained in the project root folder. So, in this ASP file, I put it like this:
However, the graph does not appear when I test on the server. Can you tell me if I'm importing the library correctly?