how to initialize chart with API fetch data?
问题 I want to use ngx-charts for my project. The problem is I don't understand how to initialize my chart with data I got from my api. The vertical bar chart seems easy. The data is of the following type: https://stackblitz.com/edit/vertical-bar-chart?embed=1&file=app/app.component.ts When I assign in the constructor Object.assign(this, data) (the data I got from my api)) I receive the following error : ERROR TypeError: Cannot read property 'toLocaleString' of undefined Their data is the