referenceerror chart is not defined factory(angular chart)
Iam using ng2-nvd3 chart control in my angular 2 application (2.00 rc4) But the following error is occuring when loading the page. ReferenceError: nv is not defined. ReferenceError: Chart is not defined .I am not able to understand the errors.You need to add reference of chart.js library to make your chart working. As angular-chart.js internally uses Chart object of chart.js library. Ive installed chart.js using npm by : npm install chart.js --save-dev, in "resources/assets/js/bootstrap.js" I refere to it by the browser returns Uncaught ReferenceError: Chart is not defined. I get the above error when I take out this line from my index.html. .And then I get the Uncaught ReferenceError : Blue is not defined. ReferenceError: Chart is not defined angular-chart.js:13:5 Error: [injector:modulerr].To fix you problem you need to add chart.js reference before angular- chart.
js as, Chart object will available render chart. up vote 1 down vote favorite Im doing some tests with Angular, and wanted to try this cool library to make a test applcation, but its not working: ReferenceError: Chart is not defined angular-chart.