Comments (7)
v3.1.0 I get
Uncaught TypeError: Chart.defaults.global is undefined
/**
- Plugin based on discussion from Chart.js issue #2745.
- @see chartjs/Chart.js#2745
*/
Chart.defaults.global.plugins.deferred = {
xOffset: 0,
yOffset: 0,
delay: 0
};
Cheers
from chartjs-plugin-deferred.
Would be good to get this fixed as @2.9.4 is the last version plug-in works on.
from chartjs-plugin-deferred.
Chartjs version: 3.3.2
Plugin version: 1.0.2
I'm getting - e.defaults.global is undefined
from chartjs-plugin-deferred.
I was able to make it work with chart js 3:
Here is fork: https://github.com/cysieks/chartjs-plugin-deferred
from chartjs-plugin-deferred.
@cysieks great, works now, but load does not seem to be deferred and loads immediately? (rechecked)
from chartjs-plugin-deferred.
The parameter lists for the beforeInit
, and beforeDatasetsUpdate
are incorrect. As coded they are (chart, options)
, but they need to be (chart, args, options)
for the options
to be seen, without it it is defaulting to 0 because it thinks they are undefined.. Changing that seems to have made it work for me. I had to make some other changes to get it to load, but once i did that, it all seems to work now. @cysieks thanks for the fork!
I'm still chasing down another issue. Using the plugin seems to trigger an onComplete event for the chart immediately on load, which causes a problem for me as I have some other code dependent on that event happening when the chart is drawn. But thanks to this fork, things are moving forward.
from chartjs-plugin-deferred.
Version 2.0.0-beta.1 has been released and is compatible with Chart.js v3.
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
- TypeError: Cannot set property 'font' of null HOT 2
- 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.