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.

[2.7] Lost responsive after destroy recreate

See original GitHub issue

If some options have changed, I destroy the chart then create a new one.

if (chart) chart.destroy()
chart = new Chart(...)

Since 2.7, the div which handle resize detection is removed but is not re-created. No problem with the iframe in 2.6

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
daniele-orlandocommented, Sep 18, 2017

Similar issue here. 2.7 is no more responsive.

1reaction
madmoizocommented, Sep 12, 2017

I already switched to chart.update() during the night so the issue is solved for me. Take your time to fix it 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS is lost after destroy and dynamic columns question
1. the tables loads up fine on document .ready but when i destroy and recreate it again the css inside table is lost....
Read more >
Chart.js flickering - javascript - Stack Overflow
I discovered it happend when recreating the chart on the same canvas. If you recreate your chart multiple times on the same canvas,...
Read more >
How to make UICollectionViewCell s… - Apple Developer
Hi, How to keep Cells in UICollectionView live, still not destroyed on some distance ... If the problem is that items (cells) are...
Read more >
Why couldn't the Valar recreate the two trees? - Quora
Sauron on the other hand only wanted to control and rule Middle Earth. The rings were a way to control men, elves and...
Read more >
PySimpleGUI
You do not need to write the word class anywhere in your code. Access to nearly every underlying GUI Framework's Widgets. Supports both...
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