ngx-charts bar chart is not refreshing results array updated #ngx-charts
See original GitHub issueI’m submitting a … (check one with “x”)
- bug report - search github for a similar issue or PR before submitting
- feature request
- support request - use StackOverflow (add the
ngx-charts
tag) or the gitter chat for support questions
Current behavior
Expected behavior
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- ngx-charts version: x.x.x
- Angular version: x.x.x
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
- Language: [all | TypeScript X.X | ES6/7 | ES5]
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Reload ngx-graph with new data - Stack Overflow
For me, this.update$.next(true); causes the entire graph to redraw, when I add a new node object to the nodes array. Is there a...
Read more >angular ngx-chart view update with async data acquired via ...
ngx - chart is a nice library but there's a quirk. Child component's view does not refresh when data passed from parent are...
Read more >swimlane/ngx-charts - Gitter
hi all. I'm using a gauge chart and trying to update the values with an immutable array like so: this.data = [...entry]; however...
Read more >@swimlane/ngx-charts - npm Package Health Analysis | Snyk
Declarative Charting Framework for Angular For more information about how to use this package see README. Latest version published 14 days ago. License:...
Read more >NGX-Graph - Introduction
Install the package. npm install @swimlane/ngx-graph --save · Import NgxGraphModule into your angular module · Add the ngx-graph component:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
did you try:
this.data = [...this.data];
The above works for me.Verified you are creating a new array not just mutating the array. As point above you need something like
this.data = [...this.data];
…this.data.push
will not work.