問題タブ [angular4-forms]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angular - How to Render ng2Chart (Barchart ) dynamically using angular 4
I used ng2charts module to render charts. If i try with below dummy data, bar chart rendering properly.
Typescript
Component Html :
But If i tried to get data from server and set data dynamically not working as expected.
I'm Getting below error
HomeComponent.html:73 ERROR TypeError: Cannot read property 'data' of undefined
Please refer my below code.