Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Blank PNG image is shown with toBase64Image() function
If a blank image is shown with the toBase64Image() function, you need to use the following to work on it correctly:
animation: {
duration: 2000,
onComplete: function (animation) {
this.toBase64Image();
}
}
With that, you can also use another fix. Call save64Img(myChart.toBase64Image()) over an additional callback and set it like this:
myLine = {
onAnimationComplete: function () {
save64Img(myChart.toBase64Image());
}
}Advertisements