I've added
<script language="javascript" type="text/javascript" src="../js/Chart.bundle.js"></script>
in aura:application file, file is downloaded by browser (can see that thru console) but when i try to create Chart object in afterRender function in Renderer
var myChart = new Chart(ctx, { .....
I've got an error:
Something has gone wrong. afterRender threw an error in 'markup://helloWorld:helloWorld' [afterRender threw an error in 'markup://c:ltGraph' [ReferenceError: Chart is not defined]] Failing descriptor: {markup://helloWorld:helloWorld} Error at new (http://localhost:8080/auraFW/javascript/lG7eYFZ_MXfCccXumk95LQ/aura_dev.js:3152:23) at http://localhost:8080/auraFW/javascript/lG7eYFZ_MXfCccXumk95LQ/aura_dev.js:1:1. Please try again.
How to use external libraries in Aura ?