You must be logged in to post your query.
Home › Forums › Chart Support › can’t bind ‘canvasjs-chart’ in Angular
Hi all . Today i tried to demo canvasjs.chart in angular but seem like it not working well. I have followed the guide https://canvasjs.com/docs/charts/integration/angular/ but it turn some error like
Error: src/app/app.component.html:2:19 – error NG8002: Can’t bind to ‘options’ since it isn’t a known property of ‘canvasjs-chart’.
1. If ‘canvasjs-chart’ is an Angular component and it has ‘options’ input, then verify that it is part of this module.
2. If ‘canvasjs-chart’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.
3. To allow any property add ‘NO_ERRORS_SCHEMA’ to the ‘@NgModule.schemas’ of this component.
i have imported canvasjs.angular.component and save canvasjs.min.js into project. Can anyone help me this T_T
Can you kindly create sample project reproducing the issue you are facing & share it with us over Google-Drive or Onedrive so that we can run it locally at our end to understand the scenario better and help you out?
Hi! Actually the issue is with the scope. It is working in app.component.html not working in self generated components. I am still solving it.
Can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive along with sample data so that we can look into your code, run it locally at our end to understand the scenario better and help you out?
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue at our end or not able to understand the exact requirements or due to the variation in chart-options being used by you and us. Because of these reasons we expect you so share sample project along with sample data(dummy data) which helps us run it locally at our end to understand the use case and help you resolve.
You must be logged in to reply to this topic. Login/Register