We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download chart as Image is not working with latest version of Chrome.
I think below code is not working any more with latest version of Chrome.
Flotr.addPlugin('download', { saveImage: function (type, width, height, replaceCanvas) { var grid = this.options.grid, image; if (Flotr.isIE && Flotr.isIE < 9) { image = '<html><body>'+this.canvas.firstChild.innerHTML+'</body></html>'; return window.open().document.write(image); } if (type !== 'jpeg' && type !== 'png') return; image = getImage( type, this.canvas, this.ctx, this.canvasWidth, this.canvasHeight, grid && grid.backgroundColor || '#ffffff' ); if (_.isElement(image) && replaceCanvas) { this.download.restoreCanvas(); D.hide(this.canvas); D.hide(this.overlay); D.setStyles({position: 'absolute'}); D.insert(this.el, image); this.saveImageElement = image; } else { var u = navigator.userAgent, isIE = (Flotr.isIE || (new RegExp(/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i)).test(u) || (new RegExp(/(edge)\/((\d+)?[\w\.]+)/i)).test(u)); if (isIE) { return window.open('about:blank').document.body.innerHTML = '<img src="' + image.src+ '">'; } return window.open(image.src); } },
window.open(image.src) open a new tab window but it is blank and do not display chart image.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Download chart as Image is not working with latest version of Chrome.
I think below code is not working any more with latest version of Chrome.
window.open(image.src) open a new tab window but it is blank and do not display chart image.
The text was updated successfully, but these errors were encountered: