Comments (2)
The cause of this issue is described in #13 and fixed in #14. Here is the code to reproduce the behavior:
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
</head>
<body>
<canvas id="chart1"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-deferred@1"></script>
<script type="module">
const chart1 = document.getElementById('chart1');
const delay = 500;
const chart = new Chart(chart1.getContext('2d'), {
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'rgb(255, 99, 132)',
borderColor: 'rgb(255, 99, 132)',
data: [0, 10, 5, 2, 20, 30, 45],
}],
},
options: {
plugins: {
deferred: {
delay,
},
},
},
});
// Destroy before render occurs.
setTimeout(() => chart.destroy(), delay / 2);
</script>
</body>
</html>
from chartjs-plugin-deferred.
@BR0kEN- Thanks for the repro code.
I figured out later that it was the same issue, closing as duplicate.
from chartjs-plugin-deferred.
Related Issues (20)
- Doesn't work with fullPage.js HOT 8
- Error with global plugins HOT 3
- Having trouble getting plugin working inside of Vue.js HOT 2
- Deferred update causes an uncaught error if `canvas` is destroyed HOT 6
- Will this be updated to be compatible with ChartJS 3.0? HOT 7
- Question about performance HOT 1
- Uncaught TypeError: Cannot read property 'plugins' of undefined HOT 3
- Unable to es6 import plugin HOT 28
- Add support for an inView callbaack HOT 1
- Uncaught TypeError: e.defaults.global is undefined HOT 2
- Additional Index to Draw Count
- ERR_PACKAGE_PATH_NOT_EXPORTED Server error HOT 2
- $exports is not defined HOT 3
- Add method to remove event listeners/cleanup HOT 7
- Error with global options HOT 3
- Uncaught TypeError: Cannot read property 'ticking' HOT 6
- Impossible to configure the plugin HOT 6
- Unable to get property 'ticking' of undefined or null reference HOT 5
- Deferred animation not working in React HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartjs-plugin-deferred.