question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngx-charts bar chart is not refreshing results array updated #ngx-charts

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
mrmijuscommented, Nov 29, 2019

did you try: this.data = [...this.data]; The above works for me.

1reaction
Hypercubedcommented, Feb 1, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found